Skip to content

Open source personal finance application

fix (useStat): fix is empty

ilkome7f10f418ee0e
diff --git a/modules/stat/useStat.ts b/modules/stat/useStat.ts
index 1eb9aa08..7617fb6e 100644
--- a/modules/stat/useStat.ts
+++ b/modules/stat/useStat.ts
@@ -10,7 +10,7 @@ const moneyTypes = [{
export default function useStat () {
const { store } = useContext()
- const isEmptyStat = computed(() => store.getters['stat/statAverage'].total === 0)
+ const isEmptyStat = computed(() => store.getters['stat/statAverage'].total === 0 && store.getters['stat/statAverage'].incomes === 0 && store.getters['stat/statAverage'].expenses === 0)
return {
moneyTypes,