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 })