Skip to content

Commit

Permalink
Updated payment request error to be more specific when informing the …
Browse files Browse the repository at this point in the history
…user that the payment request can't be completed because they are trying to pay with the wrong mint.
  • Loading branch information
swedishfrenchpress committed Jan 13, 2025
1 parent 6951665 commit 00363de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stores/payment-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ export const usePRStore = defineStore("payment-request", {
}
}
if (!foundMint) {
notifyError("We do not know the mint in the payment request");
notifyError(`This payment requires using the mint: ${request.mints}`);
throw new Error(
`We do not know the mint in the payment request: ${request.mints}`
`This payment requires using the mint: ${request.mints}`
);
}
}
Expand Down

0 comments on commit 00363de

Please sign in to comment.