Skip to content

Commit 21e61b9

Browse files
committed
fix(tokens): ensure token selection after hydrating from persistence
hydrateFromPersistence() loaded cached tokens but never called ensureValidTokenSelection(), leaving a window where no token was selected after login until the network update arrived. Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent bc92bb0 commit 21e61b9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/flipcash/shared/tokens/src/main/kotlin/com/flipcash/app/tokens/TokenCoordinator.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ class TokenCoordinator @Inject constructor(
311311
}
312312

313313
applyTokenUpdates(persisted)
314+
ensureValidTokenSelection()
314315

315316
trace(tag = TAG, message = "Hydrated ${persisted.size} tokens from persistence", type = TraceType.Process)
316317
}

0 commit comments

Comments
 (0)