From 6321d3ed8d5c9478cb1dafc1da94b21d0c7edb88 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Fri, 25 Nov 2022 10:00:30 +0100 Subject: [PATCH] fix(Icon): couldn't load anymore --- src/runtime/components/elements/Icon.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/components/elements/Icon.vue b/src/runtime/components/elements/Icon.vue index fe4a6dd2..42c5c808 100644 --- a/src/runtime/components/elements/Icon.vue +++ b/src/runtime/components/elements/Icon.vue @@ -31,7 +31,7 @@ const component = computed(() => nuxtApp.vueApp.component(props.name)) const loadIconComponent = (name: string) => { state.value = state.value || {} - if (nuxtApp.vueApp.component(props.name) || state.value[name] || state.value[name] == null) { return state.value[name] } + if (nuxtApp.vueApp.component(props.name) || state.value[name] || state.value[name] === null) { return state.value[name] } state.value[name] = loadIcon(name) .then((res) => { state.value[name] = res })