TP-58804 | lite 0 balance disablement desc fix (#9958)
This commit is contained in:
@@ -25,6 +25,7 @@ import com.navi.pay.common.theme.color.NaviPayColor
|
||||
import com.navi.pay.management.common.sendmoney.model.view.LinkedAccountEntityState
|
||||
import com.navi.pay.onboarding.account.detail.model.view.LinkedAccountEntity
|
||||
import com.navi.pay.utils.RUPEE_SYMBOL_CHAR
|
||||
import com.navi.pay.utils.ZERO_STRING
|
||||
import com.navi.pay.utils.getDisplayableAmount
|
||||
import com.navi.pay.utils.getFormattedAmountWithDecimal
|
||||
|
||||
@@ -329,7 +330,7 @@ fun getUpiLiteDisabledDescriptionWithoutBalance(description: String): AnnotatedS
|
||||
|
||||
@Composable
|
||||
fun getUpiLiteDisabledDescription(amount: String) =
|
||||
if (amount.isEmpty())
|
||||
if (amount == ZERO_STRING)
|
||||
getUpiLiteDisabledDescriptionWithoutBalance(
|
||||
description = stringResource(id = R.string.upi_lite_disabled_desc_without_balance)
|
||||
)
|
||||
|
||||
@@ -672,6 +672,7 @@ constructor(
|
||||
) {
|
||||
// zero balance disablement success
|
||||
if (disableUpiLiteAction.liteDisablementResponse == null) {
|
||||
updateBottomSheetUIState(showBottomSheet = false)
|
||||
refreshLinkedAccountsUseCase.execute()
|
||||
handleDisableUpiLiteSuccessCase()
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user