Repository navigation
Commit 0362fde
committed
Fix Connect approval toggle stuck on load failure, mint replay loss, and concurrent action race
- Revert decodeSecurityMode to fall back to 'account' for invalid persisted
values instead of failing with ConnectSecurityModeLoadError. This prevents
the UI toggle from being permanently disabled when the secret store
contains corrupt data, and also prevents mint replay guard consumption
from being wasted when getSecurityMode fails after guards are consumed.
- Add synchronous useRef guard in handleConnectClientAction to prevent
concurrent approve/reject/revoke calls that can slip through the
asynchronous React state check before re-render disables buttons.1 parent 136150d commit 0362fde
2 files changed
Lines changed: 11 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
226 | | - | |
227 | | - | |
| 225 | + | |
228 | 226 | | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
| 227 | + | |
237 | 228 | | |
238 | 229 | | |
239 | 230 | | |
| |||
265 | 256 | | |
266 | 257 | | |
267 | 258 | | |
268 | | - | |
269 | | - | |
270 | | - | |
| 259 | + | |
| 260 | + | |
271 | 261 | | |
| 262 | + | |
272 | 263 | | |
273 | 264 | | |
274 | 265 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
2224 | 2224 | | |
2225 | 2225 | | |
2226 | 2226 | | |
| 2227 | + | |
2227 | 2228 | | |
2228 | 2229 | | |
2229 | 2230 | | |
| |||
2549 | 2550 | | |
2550 | 2551 | | |
2551 | 2552 | | |
2552 | | - | |
| 2553 | + | |
| 2554 | + | |
2553 | 2555 | | |
2554 | 2556 | | |
2555 | 2557 | | |
| |||
2573 | 2575 | | |
2574 | 2576 | | |
2575 | 2577 | | |
| 2578 | + | |
2576 | 2579 | | |
2577 | 2580 | | |
2578 | 2581 | | |
2579 | | - | |
| 2582 | + | |
2580 | 2583 | | |
2581 | 2584 | | |
2582 | 2585 | | |
| |||
0 commit comments