File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
app/src/main/java/to/bitkit/ui/screens/recovery Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import kotlinx.coroutines.flow.asStateFlow
1414import kotlinx.coroutines.flow.combine
1515import kotlinx.coroutines.flow.update
1616import kotlinx.coroutines.launch
17+ import to.bitkit.R
1718import to.bitkit.data.SettingsStore
1819import to.bitkit.env.Env
1920import to.bitkit.models.Toast
@@ -119,6 +120,12 @@ class RecoveryViewModel @Inject constructor(
119120 viewModelScope.launch {
120121 walletRepo.wipeWallet().onFailure { error ->
121122 ToastEventBus .send(error)
123+ }.onSuccess {
124+ ToastEventBus .send(
125+ type = Toast .ToastType .SUCCESS ,
126+ title = context.getString(R .string.security__wiped_title),
127+ description = context.getString(R .string.security__wiped_message),
128+ )
122129 }
123130 }
124131 }
You can’t perform that action at this time.
0 commit comments