safegaurd conjugation - TODO: this should go in the actual conjugation function

This commit is contained in:
lingdocs 2021-07-05 21:16:46 +03:00
parent 8829d6cd26
commit 608253556d
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@lingdocs/pashto-inflector", "name": "@lingdocs/pashto-inflector",
"version": "0.6.1", "version": "0.6.2",
"author": "lingdocs.com", "author": "lingdocs.com",
"description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations", "description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations",
"homepage": "https://verbs.lingdocs.com", "homepage": "https://verbs.lingdocs.com",

View File

@ -195,6 +195,7 @@ function ConjugationViewer({ entry, complement, textOptions, aayTailType }: {
}); });
const conjugation = (() => { const conjugation = (() => {
if (!(entry.c && entry.c.slice(0, 2) === "v.")) return undefined;
try { try {
return conjugateVerb(entry, aayTailType ? aayTailType : "aay", complement); return conjugateVerb(entry, aayTailType ? aayTailType : "aay", complement);
} catch(e) { } catch(e) {