ts/features/payments/checkout/hooks/useOnTransactionActivationEffect.tsx
Function useOnTransactionActivationEffect
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useOnTransactionActivationEffect = (effect: EffectCallback) => {
const dispatch = useIODispatch();
const transactionPot = useIOSelector(walletPaymentTransactionSelector);
// This flag is used to avoid triggering the effect everytime this hook is mounted
Avoid too many return
statements within this function. Open
Open
return undefined;