Skip to content

Commit

Permalink
fix: close modal when token exist
Browse files Browse the repository at this point in the history
  • Loading branch information
younho9 committed Jun 6, 2022
1 parent c4fa958 commit 1e9b28d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/TokenAuthModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const TokenAuthModal = ({
}, [token, onOpen, onClose, removeToken]);

return (
<Modal isCentered isOpen={isOpen} onClose={onClose}>
<Modal isCentered isOpen={!token && isOpen} onClose={onClose}>
<ModalOverlay />
<ModalContent w={['xs', 'md']}>
<ModalHeader fontSize={['2xl', '3xl']} pb={2}>
Expand Down

1 comment on commit 1e9b28d

@vercel
Copy link

@vercel vercel bot commented on 1e9b28d Jun 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.