Skip to content

Commit

Permalink
fix: reset role state when closing without saving
Browse files Browse the repository at this point in the history
  • Loading branch information
roar-larsen committed Dec 22, 2023
1 parent 19fd414 commit ceaffb5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,18 @@ export const UserInfoDialog = (props: UserInfoDialogProps) => {
<Dialog
isDismissable
open={isOpen}
onClose={() => setIsOpen(false)}
onClose={() => {
setSelectedRole(role)
setIsOpen(false)
}}
width={'720px'}
>
<Dialog.Header>
<Dialog.Title>User info</Dialog.Title>
<Button
variant='ghost'
onClick={() => {
setSelectedRole(role)
setIsOpen(false)
}}
>
Expand Down

0 comments on commit ceaffb5

Please sign in to comment.