We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b753da commit 4a9829dCopy full SHA for 4a9829d
1 file changed
services/opencode/src/main/kotlin/com/getcode/opencode/controllers/AccountController.kt
@@ -148,14 +148,10 @@ class AccountController @Inject constructor(
148
throw error
149
}
150
}?.map { response ->
151
- val primary =
152
- response.accounts.values.find {
153
- it.accountType == AccountType.Primary && it.mint == Mint.usdf
154
- }
155
-
156
accounts.value = response.accounts.values.toList()
+ val isUnlocked = response.accounts.any { it.value.unusable }
157
158
- if (primary?.unusable == true) {
+ if (isUnlocked) {
159
onTimelockUnlocked()
160
161
}?.onSuccess {
0 commit comments