NTP-50578 | lite balance crash fix (#15562)

This commit is contained in:
shreyansu raj
2025-03-30 09:56:37 +05:30
committed by GitHub
parent af0ac61022
commit c2dc1b769b

View File

@@ -17,7 +17,6 @@ import com.navi.base.cache.repository.NaviCacheRepository
import com.navi.base.model.CtaData
import com.navi.base.model.LineItem
import com.navi.base.utils.ResourceProvider
import com.navi.base.utils.isNull
import com.navi.common.firebaseremoteconfig.FirebaseRemoteConfigHelper
import com.navi.common.firebaseremoteconfig.FirebaseRemoteConfigHelper.NAVI_PAY_PPS_UPI_LITE_BANNER_ENABLED_FLAG
import com.navi.common.firebaseremoteconfig.FirebaseRemoteConfigHelper.NAVI_PAY_SCRATCH_CARD_OPTIMISATION_V2_ENABLED
@@ -394,7 +393,7 @@ constructor(
if (!FirebaseRemoteConfigHelper.getBoolean(NAVI_PAY_PPS_UPI_LITE_BANNER_ENABLED_FLAG)) {
return
}
if (upiLiteBalance.isNull()) {
if (upiLiteBalance == null) {
_upiLiteInfoBannerData.update {
UpiLiteInfoBannerData(
typeTagText = resourceProvider.getString(R.string.np_pin_less_payment),
@@ -409,7 +408,7 @@ constructor(
FirebaseRemoteConfigHelper.getDouble(NAVI_PAY_UPI_LITE_LOW_BALANCE_BANNER_MAX_LIMIT)
if (
isAutoTopUpEnabled.not() &&
upiLiteBalance!!.toDouble() < upiLiteLowBalanceThresholdAmount
(upiLiteBalance.toDoubleOrNull() ?: 0.0) < upiLiteLowBalanceThresholdAmount
) {
_upiLiteInfoBannerData.update {
UpiLiteInfoBannerData(