Skip to content

Commit d9d5112

Browse files
committed
chore(flipcash): update error messaging for give limit
Signed-off-by: Brandon McAnsh <[email protected]>
1 parent 5b10954 commit d9d5112

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

apps/flipcash/features/cash/src/main/kotlin/com/flipcash/app/cash/internal/CashScreenViewModel.kt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,9 @@ internal class CashScreenViewModel @Inject constructor(
118118
currency.code?.let { stateFlow.value.limits?.sendLimitFor(it) } ?: SendLimit.Zero
119119
val isOverLimit = amount > sendLimit.nextTransaction
120120
if (isOverLimit) {
121-
val currencySymbol = currency.selected?.symbol ?: "$"
122121
BottomBarManager.showError(
123-
resources.getString(R.string.error_title_giveLimitReached),
124-
resources.getString(R.string.error_description_giveLimitReached)
125-
.replaceParam(
126-
"$currencySymbol${sendLimit.nextTransaction.toInt()}"
127-
)
122+
resources.getString(R.string.error_title_sendLimitReached),
123+
resources.getString(R.string.error_description_sendLimitReached)
128124
)
129125
}
130126
isOverLimit

0 commit comments

Comments
 (0)