Skip to content

Commit bcc3160

Browse files
committed
enforce key creation
1 parent 45db23f commit bcc3160

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/components/OrderlyConnect.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@ export const OrderlyConnect: FC = () => {
4343
<Dialog.Root open={open} onOpenChange={setOpen}>
4444
<Dialog.Content
4545
onInteractOutside={(event) => {
46+
if (isRegistered && hasOrderlyKey) return;
4647
event.preventDefault();
4748
}}
4849
>
4950
<Dialog.Title className="flex justify-between flex-items-center">
5051
<span className="mr-2">Connect with Orderly Network</span>
5152
<Button
53+
className={isRegistered && hasOrderlyKey ? '' : 'invisible'}
5254
variant="ghost"
5355
color="crimson"
5456
onClick={() => {

0 commit comments

Comments
 (0)