Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
fix: toast on insufficient balance
Browse files Browse the repository at this point in the history
  • Loading branch information
intergalacticspacehighway committed Nov 3, 2023
1 parent 4b05d2e commit 6beef44
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/app/hooks/creator-token/use-creator-token-buy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,14 @@ export const useCreatorTokenBuy = (params: {
{
if (isInsufficientFundsErrorFn(error)) {
toast.error(`Insufficient ${params.paymentMethod} balance`);
} else {
toast.error("Failed", {
message: formatAPIErrorMessage(error),
});
}

console.error("useCreatorTokenContractBuy", error);
captureException(error);
toast.error("Failed", {
message: formatAPIErrorMessage(error),
});
}
},
}
Expand Down

0 comments on commit 6beef44

Please sign in to comment.