diff --git a/src/pages/settings/Wallet/AddDebitCardPage.js b/src/pages/settings/Wallet/AddDebitCardPage.js index bb115589fa3e..80d1a899a9bb 100644 --- a/src/pages/settings/Wallet/AddDebitCardPage.js +++ b/src/pages/settings/Wallet/AddDebitCardPage.js @@ -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();