File tree Expand file tree Collapse file tree
core/src/main/kotlin/com/flipcash/app/core/internal/errors
onramp/src/main/kotlin/com/flipcash/app/onramp/internal
scanner/src/main/kotlin/com/flipcash/app/scanner/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ import com.getcode.util.resources.ResourceHelper
77import com.getcode.utils.ErrorUtils
88
99fun 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
1616fun 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 )
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments