diff --git a/src/libs/actions/Card.ts b/src/libs/actions/Card.ts index 556905a54f312..aebd4e8fa0eb1 100644 --- a/src/libs/actions/Card.ts +++ b/src/libs/actions/Card.ts @@ -378,8 +378,8 @@ function syncCard(cardID: number, lastScrapeResult?: number, breakConnection?: b }; if (breakConnection) { - // Simulate "Account not found" error code for testing - parameters.breakConnection = 434; + // Simulate "Account refresh required" error code for testing + parameters.breakConnection = 438; } API.write(WRITE_COMMANDS.SYNC_CARD, parameters, {optimisticData, finallyData, failureData}); diff --git a/src/libs/actions/CompanyCards.ts b/src/libs/actions/CompanyCards.ts index 4f788066708f8..4439218ab5eff 100644 --- a/src/libs/actions/CompanyCards.ts +++ b/src/libs/actions/CompanyCards.ts @@ -585,8 +585,8 @@ function updateWorkspaceCompanyCard(domainOrWorkspaceAccountID: number, cardID: }; if (breakConnection) { - // Simulate "Account not found" error code for testing - parameters.breakConnection = 434; + // Simulate "Account refresh required" error code for testing + parameters.breakConnection = 438; } API.write(WRITE_COMMANDS.SYNC_CARD, parameters, {optimisticData, finallyData, failureData}); diff --git a/src/pages/settings/Wallet/PersonalCardDetailsPage.tsx b/src/pages/settings/Wallet/PersonalCardDetailsPage.tsx index c9528ebc1d089..8931ee4a82db4 100644 --- a/src/pages/settings/Wallet/PersonalCardDetailsPage.tsx +++ b/src/pages/settings/Wallet/PersonalCardDetailsPage.tsx @@ -16,6 +16,7 @@ import useNetwork from '@hooks/useNetwork'; import useOnyx from '@hooks/useOnyx'; import useThemeIllustrations from '@hooks/useThemeIllustrations'; import useThemeStyles from '@hooks/useThemeStyles'; +import {isUsingStagingApi} from '@libs/ApiUtils'; import {getCardFeedIcon, isCardConnectionBroken, isPersonalCard} from '@libs/CardUtils'; import {getLatestErrorField} from '@libs/ErrorUtils'; import type {PlatformStackScreenProps} from '@libs/Navigation/PlatformStackNavigation/types'; @@ -40,7 +41,7 @@ type PersonalCardDetailsPageProps = PlatformStackScreenProps { if (!card?.lastScrape) {