Compare commits
2 Commits
b6275f7478
...
86a06e8094
Author | SHA1 | Date |
---|---|---|
Tim Gröger | 86a06e8094 | |
Tim Gröger | 9120bc9dba |
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"license": "MIT",
|
||||
"version": "1.0.0-alpha.2",
|
||||
"version": "1.0.0-alpha.3",
|
||||
"name": "@flaschengeist/balance",
|
||||
"author": "Ferdinand Thiessen <rpm@fthiessen.de>",
|
||||
"homepage": "https://flaschengeist.dev/Flaschengeist",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<q-card-section class="fit row justify-left content-center items-center q-col-gutter-sm">
|
||||
<div class="col-5">
|
||||
<div v-if="balance" class="text-h6">
|
||||
Aktueller Stand: {{ balance.balance ? balance.balance.toFixed(2) : '' }} €
|
||||
Aktueller Stand: {{ balance.balance ? balance.balance.toFixed(2) : parseInt('0').toFixed(2) }} €
|
||||
<q-badge v-if="isLocked" color="negative" align="top"> gesperrt </q-badge>
|
||||
</div>
|
||||
<q-spinner v-else color="primary" size="3em" />
|
||||
|
|
|
@ -21,7 +21,7 @@ export default defineComponent({
|
|||
void store.getBalance(mainStore.currentUser);
|
||||
});
|
||||
|
||||
const balance = computed(() => store.balance?.balance || NaN);
|
||||
const balance = computed(() => store.balance?.balance || 0);
|
||||
|
||||
return { balance };
|
||||
},
|
||||
|
|
|
@ -112,7 +112,7 @@ export default defineComponent({
|
|||
loading.value = false;
|
||||
}
|
||||
|
||||
const balance = computed(() => store.balance?.balance || NaN);
|
||||
const balance = computed(() => store.balance?.balance || 0);
|
||||
|
||||
const columns = [
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue