From 03480ebfc781aaca66218b3b273fa435d78539f9 Mon Sep 17 00:00:00 2001 From: Kip Raske Date: Mon, 27 Nov 2017 19:33:08 -0600 Subject: [PATCH] Passing quantity to the API call when buying quests from the shop (#9565) You can buy multiple quests from the buy modal, but the quanitity is never passed to the server. So the client thinks that you are buying the number you said you did, but the server only buys one regardless. This can lead to syncing problems down the road. --- website/client/store/actions/shops.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/client/store/actions/shops.js b/website/client/store/actions/shops.js index cdd3d24a32..5efe395f74 100644 --- a/website/client/store/actions/shops.js +++ b/website/client/store/actions/shops.js @@ -33,7 +33,7 @@ export function buyQuestItem (store, params) { return { result: opResult, - httpCall: axios.post(`/api/v3/user/buy/${params.key}`, {type: 'quest'}), + httpCall: axios.post(`/api/v3/user/buy/${params.key}`, {type: 'quest', quantity}), }; }