Browse Source

change alert to toast;

master
Nero Ignis 3 years ago
parent
commit
7e5c65fdef
  1. 4
      src/store/index.js

4
src/store/index.js

@ -137,7 +137,9 @@ export default createStore({
let purchasePrice = props.item.economy.buy * props.quantity; let purchasePrice = props.item.economy.buy * props.quantity;
if (purchasePrice > state.player.money) { if (purchasePrice > state.player.money) {
alert("Not enough money to buy "+props.quantity+" of "+props.item.name); iziToast.error({
title: "Not enough money to buy "+props.quantity+" of "+props.item.name
});
return false; return false;
} }

Loading…
Cancel
Save