From d2575665a3d5938366be3cdb2b148cfa796acb28 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 12 Jun 2020 06:58:44 +0200 Subject: [PATCH] Fix payload in getdaily --- src/store/modules/ftbot.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/store/modules/ftbot.ts b/src/store/modules/ftbot.ts index 1d970606..36fd51fc 100644 --- a/src/store/modules/ftbot.ts +++ b/src/store/modules/ftbot.ts @@ -123,7 +123,8 @@ export default { .then((result) => commit('updateBalance', result.data)) .catch(console.error); }, - getDaily({ commit }, timescale = 15) { + getDaily({ commit }, payload = {}) { + const { timescale = 20 } = payload; return api .get('/daily', { params: { timescale } }) .then((result) => commit('updateDaily', result.data))