Skip to content

Commit f1a82ed

Browse files
committed
fix: wipe success toast
1 parent 37be74c commit f1a82ed

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/src/main/java/to/bitkit/ui/screens/recovery/RecoveryViewModel.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import kotlinx.coroutines.flow.asStateFlow
1414
import kotlinx.coroutines.flow.combine
1515
import kotlinx.coroutines.flow.update
1616
import kotlinx.coroutines.launch
17+
import to.bitkit.R
1718
import to.bitkit.data.SettingsStore
1819
import to.bitkit.env.Env
1920
import 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
}

0 commit comments

Comments
 (0)