make sure to set passportData before switching screen

This commit is contained in:
0xturboblitz
2024-10-26 20:52:45 +02:00
parent b2b0a59fdf
commit a6441457da
2 changed files with 2 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ interface UserState {
dscSecret: string | null
userLoaded: boolean
initUserStore: () => void
registerPassportData: (passportData: PassportData) => void
registerPassportData: (passportData: PassportData) => Promise<void>
clearPassportDataFromStorage: () => void
clearSecretFromStorage: () => void
clearProofsFromStorage: () => void

View File

@@ -274,7 +274,7 @@ const handleResponseAndroid = async (
});
try {
useUserStore.getState().registerPassportData(passportData)
await useUserStore.getState().registerPassportData(passportData)
useNavigationStore.getState().setSelectedTab("next");
} catch (e: any) {
console.log('error during parsing:', e);