Skip to content

Commit

Permalink
Fix buy button
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDaub committed Sep 27, 2024
1 parent b49110a commit d0cd4a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/web/src/BuyButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ const BuyButton = (props) => {
(error.toString().includes("insufficient funds") ||
error.code === -32603 ||
error.code === "INSUFFICIENT_FUNDS")) ||
error.toString().includes("Need at least") ||
error.toString().includes("Bridge:")
(error && error.toString().includes("Need at least")) ||
(error && error.toString().includes("Bridge:"))
) {
let button = (
<button className="buy-button" disabled>
Expand Down

0 comments on commit d0cd4a4

Please sign in to comment.