Skip to content

Commit d855ac5

Browse files
committed
fix: correct alert vs error designation on missed alerts
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 342c694 commit d855ac5

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

  • apps/flipcash
    • core/src/main/kotlin/com/flipcash/app/core/internal/errors
    • features
      • onramp/src/main/kotlin/com/flipcash/app/onramp/internal
      • scanner/src/main/kotlin/com/flipcash/app/scanner/internal

apps/flipcash/core/src/main/kotlin/com/flipcash/app/core/internal/errors/ErrorUtil.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ import com.getcode.util.resources.ResourceHelper
77
import com.getcode.utils.ErrorUtils
88

99
fun ErrorUtils.showNetworkError(context: Context) {
10-
BottomBarManager.showError(
10+
BottomBarManager.showAlert(
1111
title = context.getString(R.string.error_title_noInternet),
1212
message = context.getString(R.string.error_description_noInternet)
1313
)
1414
}
1515

1616
fun ErrorUtils.showNetworkError(resources: ResourceHelper) {
17-
BottomBarManager.showError(
17+
BottomBarManager.showAlert(
1818
title = resources.getString(R.string.error_title_noInternet),
1919
message = resources.getString(R.string.error_description_noInternet)
2020
)

apps/flipcash/features/onramp/src/main/kotlin/com/flipcash/app/onramp/internal/OnRampViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ internal class OnRampViewModel @Inject constructor(
149149
?: SendLimit.Zero
150150
val isOverLimit = amount > sendLimit.nextTransaction
151151
if (isOverLimit) {
152-
BottomBarManager.showError(
152+
BottomBarManager.showAlert(
153153
resources.getString(R.string.error_title_insufficientFunds),
154154
resources.getString(R.string.error_description_insufficientFunds)
155155
)

apps/flipcash/features/scanner/src/main/kotlin/com/flipcash/app/scanner/internal/Scanner.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ internal fun Scanner() {
8585
// only allow navigation to give when there is something to give
8686
val hasBalance = state.giveableBalance.orZero().isPositive
8787
if (!hasBalance) {
88-
BottomBarManager.showError(
88+
BottomBarManager.showAlert(
8989
title = context.getString(R.string.title_noBalanceYet),
9090
message = context.getString(R.string.description_noBalanceYet),
9191
)

0 commit comments

Comments
 (0)