Skip to content

Commit

Permalink
Merge pull request #40333 from bernhardoj/fix/39929-remove-home-fallb…
Browse files Browse the repository at this point in the history
…ack-route

Fix after adding Debit Card user is directed to /home url and white blank page
  • Loading branch information
Hayata Suenaga authored Apr 17, 2024
2 parents 7a30485 + be33cd7 commit d7c1256
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libs/actions/PaymentMethods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import * as CardUtils from '@libs/CardUtils';
import Navigation from '@libs/Navigation/Navigation';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import ROUTES from '@src/ROUTES';
import type {Route} from '@src/ROUTES';
import INPUT_IDS from '@src/types/form/AddDebitCardForm';
import type {BankAccountList, FundList} from '@src/types/onyx';
Expand All @@ -30,7 +29,7 @@ const kycWallRef: MutableRefObject<KYCWallRef | null> = createRef<KYCWallRef>();
/**
* When we successfully add a payment method or pass the KYC checks we will continue with our setup action if we have one set.
*/
function continueSetup(fallbackRoute: Route = ROUTES.HOME) {
function continueSetup(fallbackRoute?: Route) {
if (!kycWallRef.current?.continueAction) {
Navigation.goBack(fallbackRoute);
return;
Expand Down

0 comments on commit d7c1256

Please sign in to comment.