teamdigitale/italia-app

View on GitHub
ts/features/payments/checkout/hooks/useOnTransactionActivationEffect.tsx

Summary

Maintainability
A
2 hrs
Test Coverage

Function useOnTransactionActivationEffect has 38 lines of code (exceeds 25 allowed). Consider refactoring.
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

        return undefined;
    Severity: Major
    Found in ts/features/payments/checkout/hooks/useOnTransactionActivationEffect.tsx - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status