Skip to content

Commit

Permalink
Add break statements to not 'buy' & 'take' at the same time
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwofford committed Jan 10, 2025
1 parent cb9e5ae commit c73844e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/harbor/shop/shopkeeper.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,14 @@ export const ShopkeeperComponent = ({ balance, cursed }) => {
} else {
await setBuyButton()
}
break
case 'bellButton':
if (arg[0]) {
await setBellButton(arg[0])
} else {
await setBellButton()
}
break
case 'pause':
if (arg[0]) {
await new Promise((resolve) =>
Expand Down

0 comments on commit c73844e

Please sign in to comment.