diff --git a/src/features/resources/MainDisplay.vue b/src/features/resources/MainDisplay.vue index 18d8164..f0051cf 100644 --- a/src/features/resources/MainDisplay.vue +++ b/src/features/resources/MainDisplay.vue @@ -1,11 +1,18 @@ @@ -17,7 +24,7 @@ import type { Resource } from "features/resources/resource"; import ResourceVue from "features/resources/Resource.vue"; import Decimal from "util/bignum"; import { computeOptionalComponent } from "util/vue"; -import type { Ref, StyleValue } from "vue"; +import { ComponentPublicInstance, ref, Ref, StyleValue } from "vue"; import { computed, toRefs } from "vue"; const _props = defineProps<{ @@ -29,6 +36,8 @@ const _props = defineProps<{ }>(); const props = toRefs(_props); +const effectRef = ref(null); + const effectComponent = computeOptionalComponent( props.effectDisplay as Ref ); @@ -39,9 +48,9 @@ const showPrefix = computed(() => {