Updated on 2026-08-14

This commit is contained in:
Tangem 2023-10-13 22:51:18 +08:00
parent 312740cd64
commit 5f95ba532e
4 changed files with 43 additions and 23 deletions

View file

@ -763,10 +763,14 @@ internal class WalletViewModel @Inject constructor(
}
override fun onUnlockWalletClick() {
val state = uiState as? WalletState.ContentState ?: return
analyticsEventsHandler.send(WalletScreenAnalyticsEvent.NoticeWalletLocked)
viewModelScope.launch(dispatchers.io) {
unlockWalletsUseCase()
viewModelScope.launch(dispatchers.main) {
unlockWalletsUseCase(
selectedWalletId = state.walletsListConfig.wallets[state.walletsListConfig.selectedWalletIndex].id,
)
}
}