Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnnsrs committed Aug 25, 2023
1 parent 98fbfb1 commit 8d51d9b
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/providers/confirmer/confirmer-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,16 @@ const ConfirmerProvider: React.FC<IConfirmerProviderProps> = ({ children }) => {
var promise = new Promise<boolean>((resolve, reject) => {
defered.resolver = resolve;
defered.rejecter = reject;
}).then((result) => {
console.log("Confirming", state);
setState(undefined);
return result;
});
})
.then((result) => {
console.log("Confirming", state);
setState(undefined);
return result;
})
.catch((err) => {
setState(undefined);
throw err;
});
console.log("Confirming", state);
setState({ ...state, defered: defered });

Expand Down

0 comments on commit 8d51d9b

Please sign in to comment.