Updated on 2026-08-14

This commit is contained in:
Tangem 2024-03-25 15:34:17 +08:00
parent 3470762a47
commit 1c856e49e0
6 changed files with 68 additions and 49 deletions

View file

@ -78,9 +78,7 @@ object OnboardingHelper {
when {
// When should save user wallets, then save card without navigate to save wallet screen
store.inject(DaggerGraphState::walletsRepository).shouldSaveUserWalletsSync() -> {
proceedWithScanResponse(scanResponse, backupCardsIds)
store.dispatchOnMain(
store.dispatchWithMain(
SaveWalletAction.ProvideBackupInfo(
scanResponse = scanResponse,
accessCode = accessCode,
@ -90,9 +88,9 @@ object OnboardingHelper {
val toggles = store.inject(DaggerGraphState::userWalletsListManagerFeatureToggles)
if (toggles.isGeneralManagerEnabled) {
store.dispatchOnMain(SaveWalletAction.AllowToUseBiometrics)
store.dispatchWithMain(SaveWalletAction.SaveWalletAfterBackup)
} else {
store.dispatchOnMain(SaveWalletAction.Save)
store.dispatchWithMain(SaveWalletAction.Save)
}
}
// When should not save user wallets but device has biometry and save wallet screen has not been shown,