Skip to content

Commit cdcfc0c

Browse files
Defer personal card delete until RHP dismiss completes
Run deletePersonalCard in goBack's afterTransition so the card stays in Onyx during the dismiss animation and NotFoundPage does not flash. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent b81afff commit cdcfc0c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/pages/settings/Wallet/PersonalCardDetailsPage.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,10 @@ function PersonalCardDetailsPage({route}: PersonalCardDetailsPageProps) {
114114
if (result.action !== ModalActions.CONFIRM) {
115115
return;
116116
}
117-
Navigation.goBack(ROUTES.SETTINGS_WALLET);
118117
const savedColumnLayout = savedColumnLayouts?.[card.cardID];
119-
deletePersonalCard({cardID: card.cardID, card, allTransactions, allReports, savedColumnLayout});
118+
Navigation.goBack(ROUTES.SETTINGS_WALLET, {
119+
afterTransition: () => deletePersonalCard({cardID: card.cardID, card, allTransactions, allReports, savedColumnLayout}),
120+
});
120121
});
121122
};
122123

0 commit comments

Comments
 (0)