NTP-44548 | View history redirection Fix (#15960)

This commit is contained in:
Balrambhai Sharma
2025-04-28 20:51:26 +05:30
committed by GitHub
parent 979fff52db
commit 8e98343bd7

View File

@@ -2523,7 +2523,7 @@ constructor(
}
}
private suspend fun fetchTransactionLedgerExperiment() {
private suspend fun fetchTransactionLedgerExperiment(): Boolean {
val experimentResult =
litmusExperimentsUseCase.execute(
experimentName = LITMUS_EXPERIMENT_NAVIPAY_TRANSACTION_LEDGER
@@ -2535,14 +2535,14 @@ constructor(
_payeeEntity.value.externalId
.equals(PreferenceManager.getStringPreference(USER_EXTERNAL_ID).orEmpty())
.not()
_isTxnLedgerAvailable.update { isAvailable }
return isAvailable
}
internal fun init() {
viewModelScope.launch(coroutineDispatcherProvider.io) {
fetchTransactionLedgerExperiment()
val isTxnLedgerExpermientEnabled = fetchTransactionLedgerExperiment()
if (
isTxnLedgerAvailable.value &&
isTxnLedgerExpermientEnabled &&
(source is SendMoneyScreenSource.TransactionDetailsViewHistory)
)
return@launch