We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82bb7a0 commit 49f5b79Copy full SHA for 49f5b79
app/src/main/java/to/bitkit/viewmodels/WalletViewModel.kt
@@ -306,7 +306,7 @@ class WalletViewModel @Inject constructor(
306
)
307
walletRepo.setBip21(newBip21)
308
walletRepo.saveInvoiceWithTags(bip21Invoice = newBip21, tags = _uiState.value.selectedTags)
309
- resetWalletState()
+ clearTagsAndBip21DescriptionState()
310
syncState()
311
}
312
@@ -526,7 +526,7 @@ class WalletViewModel @Inject constructor(
526
_uiState.update { it.copy(bip21Description = newText) }
527
528
529
- private fun resetWalletState() {
+ private fun clearTagsAndBip21DescriptionState() {
530
_uiState.update { it.copy(selectedTags = listOf(), bip21Description = "") }
531
532
0 commit comments