Commit b75cbd1
ENG-2084 Reset applying flag only on the failure path
The success path calls onClose() and unmounts, so the finally block was
setting state on an unmounted component. Harmless — React removed that
warning in 18.0 and it is a silent no-op — but the ordering read as if the
reset mattered after close. Only the catch stays mounted, so only it resets.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent f8d4c97 commit b75cbd1
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
0 commit comments