File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
app/src/main/java/com/getcode/view/main/home Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -723,10 +723,6 @@ class HomeViewModel @Inject constructor(
723
723
724
724
runCatching { tipController.fetch(username, payload) }
725
725
.onFailure {
726
- // User not found
727
- // Prevent scanning invalid tip cards repeatedly
728
- scannedRendezvous.add(payload.rendezvous.publicKey)
729
- cancelTip()
730
726
TopBarManager .showMessage(
731
727
TopBarManager .TopBarMessage (
732
728
title = resources.getString(R .string.error_title_invalidTipCard),
@@ -741,8 +737,10 @@ class HomeViewModel @Inject constructor(
741
737
viewModelScope.launch {
742
738
_eventFlow .emit(HomeEvent .SendIntent (intent))
743
739
}
740
+ cancelTip()
744
741
},
745
- secondaryText = resources.getString(R .string.action_notNow)
742
+ secondaryText = resources.getString(R .string.action_notNow),
743
+ secondaryAction = ::cancelTip
746
744
)
747
745
)
748
746
}.onSuccess {
You can’t perform that action at this time.
0 commit comments