Commit 9d19673
committed
Fix: hide 'Try again' button when pairing succeeds to prevent state regression
After successful pairing (status === 'paired'), clicking the 'Try again'
button would re-invoke submitHostedPairingRequest, which calls
addSavedEnvironment for an already-connected environment. This throws
'This environment is already connected', causing the UI to regress from
the success state back to an error state.
Hide the button entirely when status is 'paired', leaving only the
'Open app' button visible.1 parent b0cf85f commit 9d19673
1 file changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
250 | 252 | | |
251 | 253 | | |
252 | 254 | | |
| |||
0 commit comments