Skip to content

Commit

Permalink
fix: make demo button work again
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwep committed Jan 23, 2025
1 parent dec84a5 commit c56f7fb
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@ import { useDataStore } from '@store/state';
import { DataStateV3 } from '@store/state/types';
import { onMounted, ref } from 'vue';
import { useI18n } from 'vue-i18n';
import { useStorage } from '@storage/index.ts';
const { deserialize, state } = useDataStore();
const { deserialize } = useDataStore();
const { status } = useStorage();
const { t } = useI18n();
const loading = ref(false);
const loadDemoData = async () => {
if (loading.value || state.years.length) {
if (loading.value || status.value !== 'idle') {
return;
}
Expand Down

0 comments on commit c56f7fb

Please sign in to comment.