Merge pull request #278 from gradido/balance-in-user-profile

fix: Dynamic Balance in User Profile
This commit is contained in:
Moriz Wahl 2021-05-05 12:14:52 +02:00 committed by GitHub
commit f5bd8a8da5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>