Skip to content

Commit ec3a7a0

Browse files
committed
chore(session): display errors when failed to give cash
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 9b56235 commit ec3a7a0

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

apps/flipcash/core/src/main/res/values/strings.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,4 +428,7 @@
428428
<string name="description_noTransactionHistory">Your recent activity will appear here when you send or receive money</string>
429429

430430
<string name="title_billCustomizer">Bill Playground</string>
431+
432+
<string name="error_title_CashReturnedToWallet">Something Went Wrong</string>
433+
<string name="error_description_CashReturnedToWallet">The cash was returned to your wallet</string>
431434
</resources>

apps/flipcash/shared/session/src/main/kotlin/com/flipcash/app/session/internal/RealSessionController.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,10 @@ class RealSessionController @Inject constructor(
451451
error = it
452452
)
453453
dismissBill(action = PutInWallet)
454+
BottomBarManager.showError(
455+
title = resources.getString(R.string.error_title_CashReturnedToWallet),
456+
message = resources.getString(R.string.error_description_CashReturnedToWallet)
457+
)
454458
},
455459
present = { data ->
456460
if (!bill.didReceive) {

0 commit comments

Comments
 (0)