Skip to content

Commit ee11616

Browse files
committed
Fix switching image presentation
1 parent 0cc36f6 commit ee11616

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

frontend/src/components/CoinListView.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import i18n from "@/i18n/index.js";
1313
const router = useRouter()
1414
const service = useService();
1515
16-
const presentationState = ref(imagePresentation)
1716
const images = ref({})
1817
const coinsList = ref([])
1918
const searchVal = ref(null)
@@ -39,10 +38,10 @@ const props = defineProps({
3938
});
4039
4140
onMounted(async () => {
42-
watch(presentationState, () => {
41+
watch(imagePresentation,async () => {
4342
images.value = {}
4443
if (imagePresentation.value === 'image' && props.settings.type) {
45-
const coins_list = service.loadCoins()
44+
const coins_list = await service.loadCoins()
4645
coins_list.forEach((coin) => {
4746
images.value[coin[0]] = coin[1];
4847
});

0 commit comments

Comments
 (0)