mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-04-22 02:07:58 +00:00
fix: prevent staking dashboard hang when exposure flag not cached
isPagedExposuresUsed() called storageCache.getEntry() which suspends forever if the entry doesn't exist. The flag is only written by ValidatorExposureUpdater (staking detail flow), so the dashboard would hang indefinitely waiting for it. Check cache first with isFullKeyInCache() and default to paged exposures when the flag is absent. Also remove debug log statements.
This commit is contained in:
-1
@@ -156,7 +156,6 @@ class PezkuwiDashboardRepository(
|
||||
}
|
||||
kycModule.storage("KycStatuses").query(accountId, binding = { decoded ->
|
||||
val enumName = decoded?.castToDictEnum()?.name
|
||||
Log.d("PezkuwiDashboard", "KYC status raw enum: '$enumName' (decoded=$decoded)")
|
||||
when (enumName) {
|
||||
"PendingReferral" -> CitizenshipStatus.PENDING_REFERRAL
|
||||
"ReferrerApproved" -> CitizenshipStatus.REFERRER_APPROVED
|
||||
|
||||
Reference in New Issue
Block a user