Skip to content

Commit 0da2300

Browse files
Merge pull request #630 from kunalbansal23cs227/fix/info-dialog-flicker-blue-variant
Fix: prevent InfoDialog from flickering to blue variant on close
2 parents 319f9c2 + 7104d90 commit 0da2300

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/features/infoDialogSlice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const infoDialogSlice = createSlice({
3232
state.isOpen = false;
3333
state.title = '';
3434
state.message = '';
35-
state.variant = 'info';
35+
state.variant = state.variant || 'info';
3636
state.showCloseButton = true;
3737
},
3838
},

0 commit comments

Comments
 (0)