mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-22 13:48:24 +00:00
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.
This commit is contained in:
parent
9b8676f02e
commit
03480ebfc7
1 changed files with 1 additions and 1 deletions
|
|
@ -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}),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue