Skip to content

Commit 9b09fa0

Browse files
committed
fix: solve conflicts
1 parent 1832634 commit 9b09fa0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,14 @@ class AppViewModel @Inject constructor(
9696
}
9797
}
9898

99+
fun addTagToSelected(newTag: String) {
100+
_sendUiState.update {
101+
it.copy(
102+
selectedTags = it.selectedTags + newTag
103+
)
104+
}
105+
}
106+
99107
private var scan: Scanner? = null
100108

101109
init {
@@ -641,6 +649,7 @@ data class SendUiState(
641649
val description: String = "",
642650
val isUnified: Boolean = false,
643651
val payMethod: SendMethod = SendMethod.ONCHAIN,
652+
val selectedTags: List<String> = listOf(), //TODO save tags in other PR
644653
val decodedInvoice: LightningInvoice? = null,
645654
)
646655

0 commit comments

Comments
 (0)