Skip to content

Commit

Permalink
enforce key creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarnadas committed Oct 25, 2024
1 parent 45db23f commit bcc3160
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/components/OrderlyConnect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ export const OrderlyConnect: FC = () => {
<Dialog.Root open={open} onOpenChange={setOpen}>
<Dialog.Content
onInteractOutside={(event) => {
if (isRegistered && hasOrderlyKey) return;
event.preventDefault();
}}
>
<Dialog.Title className="flex justify-between flex-items-center">
<span className="mr-2">Connect with Orderly Network</span>
<Button
className={isRegistered && hasOrderlyKey ? '' : 'invisible'}
variant="ghost"
color="crimson"
onClick={() => {
Expand Down

0 comments on commit bcc3160

Please sign in to comment.