Skip to content

Commit

Permalink
Fix check for free item
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Sofaer committed Feb 8, 2023
1 parent ee79c2e commit e76ee60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buy-now/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function EaselBuyMainPage({
const coinInputs = [...selectedRecipe?.coin_inputs];

/* istanbul ignore next */
if (coinInputs?.length > 0) {
if (coinInputs?.length > 0 && coinInputs[0].coins?.length > 0) {
const resCoins: any = coinInputs[0]?.coins[0];
denom = resCoins.denom;
if (resCoins?.denom === "USD") {
Expand Down

0 comments on commit e76ee60

Please sign in to comment.