diff --git a/frontend/src/views/UserCP.vue b/frontend/src/views/UserCP.vue index 05550cf..0e53332 100644 --- a/frontend/src/views/UserCP.vue +++ b/frontend/src/views/UserCP.vue @@ -42,8 +42,7 @@ export default { data: () => ({ user: '', - decks: '', - cardsdb: null + decks: '' }), methods: { @@ -65,8 +64,11 @@ export default { } }, + computed: { + cardsdb: () => CardsDB + }, + mounted() { - this.cardsdb = CardsDB axios .post('/user/info', {