use dynamic balance in user profile

This commit is contained in:
Moriz Wahl 2021-05-04 15:28:14 +02:00
parent 1dad6dff06
commit c62faf0d86
2 changed files with 8 additions and 2 deletions

View File

@ -36,7 +36,7 @@
</div>
<div>
<span class="heading">
{{ $n(this.$store.state.user.balance) }}
{{ $n(balance) }}
</span>
<span class="description">GDD</span>
</div>
@ -60,6 +60,9 @@ export default {
components: {
VueQrcode,
},
props: {
balance: { type: Number, default: 0 },
},
}
</script>
<style></style>

View File

@ -7,7 +7,7 @@
<b-container fluid class="mt--6">
<b-row>
<b-col xl="12" class="order-xl-2 mb-5">
<user-card></user-card>
<user-card :balance="balance"></user-card>
</b-col>
</b-row>
</b-container>
@ -20,6 +20,9 @@ export default {
components: {
UserCard,
},
props: {
balance: { type: Number, default: 0 },
},
}
</script>
<style></style>