Skip to content

Commit

Permalink
fix: confirm callback (#1072)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicleo committed Mar 21, 2023
1 parent d1aa61b commit 2a84b66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/zarm/src/modal/Confirm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const confirm = (props: ModalConfirmProps): Promise<boolean> => {
const result = await onConfirm?.();
if (result === false) return;
close();
resolve(null);
resolve(true);
},
},
],
Expand Down

0 comments on commit 2a84b66

Please sign in to comment.