Updated on 2026-08-14
This commit is contained in:
parent
3e1a45dbad
commit
6016933480
9 changed files with 21 additions and 23 deletions
|
|
@ -12,10 +12,10 @@ internal class RuntimeUserWalletsStore(
|
|||
private val walletsStateHolder: WalletsStateHolder,
|
||||
) : UserWalletsStore {
|
||||
|
||||
override suspend fun getSync(userWalletId: UserWalletId): UserWallet? {
|
||||
override suspend fun getOrNull(userWalletId: UserWalletId): UserWallet? {
|
||||
return walletsStateHolder.userWalletsListManager
|
||||
?.userWallets
|
||||
?.firstOrNull()
|
||||
?.firstOrNull { it.walletId == userWalletId }
|
||||
?.singleOrNull { it.walletId == userWalletId }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue