TP-00000 | add null check in isVpaInputSelfPrimaryVpa (#7626)
This commit is contained in:
@@ -152,7 +152,8 @@ class UPIIdInputViewModel @Inject constructor(
|
||||
|
||||
private suspend fun isVpaInputSelfPrimaryVpa(vpaInput: String): Boolean {
|
||||
val linkedAccountEntities = linkedAccountsUseCase.execute()
|
||||
return linkedAccountEntities.first { it.isAccountPrimary }.vpa == vpaInput
|
||||
val primaryAccount = linkedAccountEntities.firstOrNull { it.isAccountPrimary }
|
||||
return primaryAccount?.vpa == vpaInput
|
||||
}
|
||||
|
||||
fun verifyUPIId() {
|
||||
|
||||
Reference in New Issue
Block a user