NTP-8372 | lat bug fix (#13211)
This commit is contained in:
@@ -749,22 +749,22 @@ constructor(
|
||||
enteredAmount,
|
||||
isInvalidAmount,
|
||||
mainCtaState,
|
||||
linkedAccounts,
|
||||
selectedBankAccount
|
||||
) {
|
||||
enableButtonLottie,
|
||||
enteredAmount,
|
||||
isInvalidAmount,
|
||||
mainCtaState,
|
||||
linkedAccounts,
|
||||
selectedBankAccount ->
|
||||
if (linkedAccounts.isEmpty() || mainCtaState is UpiLiteMainCtaState.Disabled) {
|
||||
if (mainCtaState is UpiLiteMainCtaState.Disabled) {
|
||||
false
|
||||
} else {
|
||||
(!enableButtonLottie &&
|
||||
enteredAmount.isAmountValid() &&
|
||||
!isInvalidAmount &&
|
||||
selectedBankAccount != null) ||
|
||||
|
||||
!isUserOnboarded() ||
|
||||
(!enableButtonLottie &&
|
||||
enteredAmount.isAmountValid() &&
|
||||
!isInvalidAmount &&
|
||||
selectedBankAccount != null) ||
|
||||
mainCtaState !is UpiLiteMainCtaState.AddBalance
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1317,7 +1317,7 @@ fun RenderLinkedAccountDetailScreenBottomSheet(
|
||||
primaryButton = stringResource(id = R.string.retry),
|
||||
secondaryButton = stringResource(id = R.string.cancel),
|
||||
onSecondaryButtonClicked = { closeSheet.invoke() },
|
||||
onPrimaryButtonClicked = { onDisableUPILiteAction.invoke() }
|
||||
onPrimaryButtonClicked = linkedAccountDetailViewModel::handleDisableUpiLiteClick
|
||||
)
|
||||
}
|
||||
is LinkedAccountDetailBottomSheetUIState.DisableUPILitePending -> {
|
||||
@@ -1325,7 +1325,7 @@ fun RenderLinkedAccountDetailScreenBottomSheet(
|
||||
header = bottomSheetType.title,
|
||||
description = bottomSheetType.description,
|
||||
primaryButton = stringResource(id = R.string.np_okay_got_it),
|
||||
onPrimaryButtonClicked = { closeSheet.invoke() },
|
||||
onPrimaryButtonClicked = closeSheet,
|
||||
onSecondaryButtonClicked = {},
|
||||
secondaryButton = null
|
||||
)
|
||||
|
||||
@@ -1154,7 +1154,7 @@ constructor(
|
||||
}
|
||||
}
|
||||
|
||||
private fun handleDisableUpiLiteClick() {
|
||||
fun handleDisableUpiLiteClick() {
|
||||
viewModelScope.launch(Dispatchers.IO) {
|
||||
if (isUserOnboarded()) {
|
||||
updateBottomSheetUIState(
|
||||
|
||||
Reference in New Issue
Block a user