Skip to content

Commit

Permalink
useDialog confirmation bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
underbluewaters committed Feb 7, 2024
1 parent e2898e2 commit 53ad56f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/client/src/components/useDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ export default function useDialog() {
open: true,
description: options?.description,
message: message,
onSubmit: options?.onSubmit,
onSubmit: options?.onSubmit
? options?.onSubmit
: () => resolve(true),
onCancel: () => resolve(false),
submitting: false,
primaryButtonText: options?.primaryButtonText,
Expand Down

0 comments on commit 53ad56f

Please sign in to comment.