Skip to content

Commit 49f5b79

Browse files
committed
refactor rename method resetWalletState
1 parent 82bb7a0 commit 49f5b79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/to/bitkit/viewmodels/WalletViewModel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ class WalletViewModel @Inject constructor(
306306
)
307307
walletRepo.setBip21(newBip21)
308308
walletRepo.saveInvoiceWithTags(bip21Invoice = newBip21, tags = _uiState.value.selectedTags)
309-
resetWalletState()
309+
clearTagsAndBip21DescriptionState()
310310
syncState()
311311
}
312312
}
@@ -526,7 +526,7 @@ class WalletViewModel @Inject constructor(
526526
_uiState.update { it.copy(bip21Description = newText) }
527527
}
528528

529-
private fun resetWalletState() {
529+
private fun clearTagsAndBip21DescriptionState() {
530530
_uiState.update { it.copy(selectedTags = listOf(), bip21Description = "") }
531531
}
532532
}

0 commit comments

Comments
 (0)