Skip to content

Commit 6d9994c

Browse files
committed
Reduce user confirmation jank
1 parent b3cec5a commit 6d9994c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web/src/components/common/UserConfirmation.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ export const UserConfirmation = () => {
7777
}
7878

7979
const handleClose = (verdict: VERDICT) => {
80-
setMinusxMode('open-sidepanel')
8180
console.log('Modal closing with verdict:', verdict)
8281
if ((verdict === 'REJECT') && (rejectFeedback.trim() != '')) {
8382
dispatch(setUserConfirmationFeedback(rejectFeedback))
@@ -90,6 +89,9 @@ export const UserConfirmation = () => {
9089
setShowRejectFeedback(false)
9190
setDontAskAgain(false)
9291
onClose()
92+
setTimeout(() => {
93+
setMinusxMode('open-sidepanel')
94+
}, 100)
9395
}
9496

9597
useEffect(() => {

0 commit comments

Comments
 (0)