From fa4569415d0f86787b92396bff0ce922bb45dee9 Mon Sep 17 00:00:00 2001 From: Gabe Yuan Date: Fri, 27 Oct 2023 14:07:22 +0800 Subject: [PATCH] fix dict ui --- src/views/Selection/DictCont.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/Selection/DictCont.js b/src/views/Selection/DictCont.js index 3da229b..178731b 100644 --- a/src/views/Selection/DictCont.js +++ b/src/views/Selection/DictCont.js @@ -32,7 +32,9 @@ export default function DictCont({ dictResult }) { {dictResult.simple_means?.symbols?.map(({ ph_en, ph_am, parts }, idx) => (
-
{`英[${ph_en}] 美[${ph_am}]`}
+ {(ph_en || ph_am) && ( +
{`英[${ph_en || ""}] 美[${ph_am || ""}]`}
+ )}