From 75b6560625fbfd9c9d37ce6da8ef231b48ebbf1b Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Fri, 25 Mar 2022 15:15:13 +0500 Subject: [PATCH] fix verb select thing --- src/lib/np-tools.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/np-tools.ts b/src/lib/np-tools.ts index b28ee84..9edc80d 100644 --- a/src/lib/np-tools.ts +++ b/src/lib/np-tools.ts @@ -166,7 +166,7 @@ export function getEnglishVerb(entry: T.DictionaryEntry): string { throw new Error("no english information for verb"); } if (entry.ep) { - const ec = entry.ec.includes(",") ? parseEc(entry.ec) : entry.ec; + const ec = entry.ec.includes(",") ? parseEc(entry.ec)[0] : entry.ec; return `to ${ec} ${entry.ep}`; } const ec = parseEc(entry.ec);