Compare commits

..

No commits in common. "86a06e8094df1f198b11ef568165370fb48c2f61" and "b6275f7478d861b966d87e7b1e485ae3c93f41d1" have entirely different histories.

4 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{ {
"license": "MIT", "license": "MIT",
"version": "1.0.0-alpha.3", "version": "1.0.0-alpha.2",
"name": "@flaschengeist/balance", "name": "@flaschengeist/balance",
"author": "Ferdinand Thiessen <rpm@fthiessen.de>", "author": "Ferdinand Thiessen <rpm@fthiessen.de>",
"homepage": "https://flaschengeist.dev/Flaschengeist", "homepage": "https://flaschengeist.dev/Flaschengeist",

View File

@ -2,7 +2,7 @@
<q-card-section class="fit row justify-left content-center items-center q-col-gutter-sm"> <q-card-section class="fit row justify-left content-center items-center q-col-gutter-sm">
<div class="col-5"> <div class="col-5">
<div v-if="balance" class="text-h6"> <div v-if="balance" class="text-h6">
Aktueller Stand: {{ balance.balance ? balance.balance.toFixed(2) : parseInt('0').toFixed(2) }} Aktueller Stand: {{ balance.balance ? balance.balance.toFixed(2) : '' }}
<q-badge v-if="isLocked" color="negative" align="top"> gesperrt </q-badge> <q-badge v-if="isLocked" color="negative" align="top"> gesperrt </q-badge>
</div> </div>
<q-spinner v-else color="primary" size="3em" /> <q-spinner v-else color="primary" size="3em" />

View File

@ -21,7 +21,7 @@ export default defineComponent({
void store.getBalance(mainStore.currentUser); void store.getBalance(mainStore.currentUser);
}); });
const balance = computed(() => store.balance?.balance || 0); const balance = computed(() => store.balance?.balance || NaN);
return { balance }; return { balance };
}, },

View File

@ -112,7 +112,7 @@ export default defineComponent({
loading.value = false; loading.value = false;
} }
const balance = computed(() => store.balance?.balance || 0); const balance = computed(() => store.balance?.balance || NaN);
const columns = [ const columns = [
{ {