Skip to content

Commit

Permalink
Fix unhandled error
Browse files Browse the repository at this point in the history
  • Loading branch information
johny committed Jun 23, 2023
1 parent 759f7c2 commit 18a60f7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/pages/ecosystem/widget/useTransferWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ export const useTransferWidget = () => {
setMessage(result?.message);
setTx(result?.data?.tx);
setBlock(result?.data?.block);
} else {
setErrors({
global: result.message,
});
setFormState('error');
}
} catch (error) {
setErrors({
Expand Down

0 comments on commit 18a60f7

Please sign in to comment.