Skip to content

Commit

Permalink
[ABW-1920] Back button fix (#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
kugel3 committed Jul 19, 2023
1 parent 920fc8c commit 1a67280
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,11 @@ public struct ImportOlympiaWalletCoordinator: Sendable, FeatureReducer {
private func accountsToImportViewAppeared(
in state: inout State
) -> EffectTask<Action> {
// This happens if the user steps back from ImportMnemonic to AccountsToImport
if case let .checkedIfOlympiaFactorSourceAlreadyExists(progress) = state.progress {
// This happens if the user steps back from ImportMnemonic to AccountsToImport
state.progress = .foundAlreadyImported(progress.previous)
} else if case let .migratedSoftwareAccounts(progress) = state.progress {
// This happens if the user steps back from ImportOlympiaLedgerAccountsAndFactorSources to AccountsToImport
state.progress = .foundAlreadyImported(progress.previous)
}
return .none
Expand Down

0 comments on commit 1a67280

Please sign in to comment.