Skip to content

Commit

Permalink
comment updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Pujan92 committed Oct 27, 2023
1 parent c93fdd2 commit 2d570a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/settings/Wallet/AddDebitCardPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ function DebitCardPage(props) {
const prevFormDataSetupComplete = usePrevious(props.formData.setupComplete);
const nameOnCardRef = useRef(null);

// Reset the form values on mount and unmount of the component
/**
* Reset the form values on mount and unmount of the component to Make sure we reset the onyx values so old errors don't show if this form is displayed later
*/
useEffect(() => {
PaymentMethods.clearDebitCardFormErrorAndSubmit();

Expand Down

0 comments on commit 2d570a7

Please sign in to comment.