From 3012590da722efb6b2402adf040e3db6eb66a8e8 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Mon, 3 Apr 2023 00:39:19 -0500 Subject: [PATCH] Fix build issue --- src/features/achievements/Achievement.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/features/achievements/Achievement.vue b/src/features/achievements/Achievement.vue index e0ffe6d..e615244 100644 --- a/src/features/achievements/Achievement.vue +++ b/src/features/achievements/Achievement.vue @@ -27,12 +27,10 @@ import "components/common/features.css"; import MarkNode from "components/MarkNode.vue"; import Node from "components/Node.vue"; -import { CoercableComponent, jsx } from "features/feature"; -import { Visibility, isHidden, isVisible } from "features/feature"; +import { isHidden, isVisible, jsx, Visibility } from "features/feature"; import { displayRequirements, Requirements } from "game/requirements"; -import { coerceComponent, computeOptionalComponent, isCoercableComponent, processedPropType, unwrapRef } from "util/vue"; -import { Component, shallowRef, StyleValue, UnwrapRef, watchEffect } from "vue"; -import { defineComponent, toRefs, unref } from "vue"; +import { coerceComponent, isCoercableComponent, processedPropType, unwrapRef } from "util/vue"; +import { Component, defineComponent, shallowRef, StyleValue, toRefs, unref, UnwrapRef, watchEffect } from "vue"; import { GenericAchievement } from "./achievement"; export default defineComponent({ @@ -76,7 +74,7 @@ export default defineComponent({ comp.value = coerceComponent(currDisplay); return; } - const Requirement = currDisplay.requirement ? coerceComponent(currDisplay.requirement, "h3") : displayRequirements(unwrapRef(requirements) ?? []); + const Requirement = coerceComponent(currDisplay.requirement ? currDisplay.requirement : jsx(() => displayRequirements(unwrapRef(requirements) ?? [])), "h3"); const EffectDisplay = coerceComponent(currDisplay.effectDisplay || "", "b"); const OptionsDisplay = coerceComponent(currDisplay.optionsDisplay || "", "span"); comp.value = coerceComponent(