Skip to content

Commit

Permalink
Merge pull request #588 from z3us-dapps/develop
Browse files Browse the repository at this point in the history
v2.0.39+ext
  • Loading branch information
heathsnee authored May 24, 2024
2 parents 0ef08c5 + 40059f5 commit 0fc7710
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "z3us-extension",
"version": "2.0.38",
"version": "2.0.39",
"type": "module",
"scripts": {
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
Expand Down
10 changes: 7 additions & 3 deletions apps/extension/src/components/modals/sign-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,20 +108,24 @@ const SignModal: React.FC<IProps> = ({
}

const handleCancel = () => {
if (keystore?.webAuthn) return
onCancel()
setError('')
setIsOpen(false)
}

const handleInteraction = () => {
if (keystore?.webAuthn) return
handleCancel()
}

return (
<DialogRoot open={isOpen}>
<DialogPortal>
<DialogOverlay className={dialogStyles.dialogOverlay} />
<DialogContent
className={alertStyles.alertDialogContent}
onEscapeKeyDown={handleCancel}
onInteractOutside={handleCancel}
onEscapeKeyDown={handleInteraction}
onInteractOutside={handleInteraction}
>
<Box className={styles.signAlertDialogContentWrapper}>
{title && (
Expand Down

0 comments on commit 0fc7710

Please sign in to comment.