From 7e5c65fdeffedac648d1a4506318c9f531f54d38 Mon Sep 17 00:00:00 2001 From: Nero Ignis Date: Thu, 26 May 2022 06:55:36 +0200 Subject: [PATCH] change alert to toast; --- src/store/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index 4748676..530f902 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -137,7 +137,9 @@ export default createStore({ let purchasePrice = props.item.economy.buy * props.quantity; 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; }