From e18121ddfcf4384fa66a38fd7a935edfb3d3b856 Mon Sep 17 00:00:00 2001 From: ogerly Date: Tue, 2 Mar 2021 06:08:23 +0100 Subject: [PATCH] fix creation 1000 GDD for max musterman --- community_server | 2 +- frontend/src/store/store.js | 2 +- frontend/src/views/KontoOverview/GddStatus.vue | 6 +++++- login_server | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/community_server b/community_server index 7ec49de34..36ddbba58 160000 --- a/community_server +++ b/community_server @@ -1 +1 @@ -Subproject commit 7ec49de346b59ed73fa069b0cc4ee8ee927b77e6 +Subproject commit 36ddbba5815435575b2d3c1270d738ccabc9eb54 diff --git a/frontend/src/store/store.js b/frontend/src/store/store.js index 1b8c18426..cb85c42c5 100644 --- a/frontend/src/store/store.js +++ b/frontend/src/store/store.js @@ -42,7 +42,7 @@ export const store = new Vuex.Store({ }, user_balance: (state,balance) => { console.log('mutation: user_balance') - state.user.balance = balance + state.user.balance = balance / 10000 }, transactions: (state,transactions) => { console.log('mutation: transactions') diff --git a/frontend/src/views/KontoOverview/GddStatus.vue b/frontend/src/views/KontoOverview/GddStatus.vue index 2b09755be..bffb6933a 100644 --- a/frontend/src/views/KontoOverview/GddStatus.vue +++ b/frontend/src/views/KontoOverview/GddStatus.vue @@ -6,7 +6,7 @@ type="gradient-red" sub-title="balance_gdd" class="mb-4"> - {{ balance_gdd }} GDD + {{ $store.state.user.balance.toFixed(4) }} GDD @@ -36,5 +36,9 @@ export default { balance_gdt: "0", } }, + mounted() { + + this.$store.dispatch('accountBalance') + }, }; \ No newline at end of file diff --git a/login_server b/login_server index 66dcb3a68..9b9115290 160000 --- a/login_server +++ b/login_server @@ -1 +1 @@ -Subproject commit 66dcb3a68397662c15729d559d64b4781a5e2f40 +Subproject commit 9b9115290c8d2ead756d64b70ae63a6571aa4693