From 9b5e19f39e892b2eb921cf1449cac21fc63c74e4 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Thu, 14 Apr 2022 00:57:26 +0500 Subject: [PATCH] error on selecting tenseCategory --- package.json | 2 +- src/components/vp-explorer/TensePicker.tsx | 2 +- src/components/vp-explorer/VPExplorerQuiz.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 45ca058..a5515ea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "2.0.4", + "version": "2.0.5", "author": "lingdocs.com", "description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations", "homepage": "https://verbs.lingdocs.com", diff --git a/src/components/vp-explorer/TensePicker.tsx b/src/components/vp-explorer/TensePicker.tsx index 2cbb63d..291bbcf 100644 --- a/src/components/vp-explorer/TensePicker.tsx +++ b/src/components/vp-explorer/TensePicker.tsx @@ -166,7 +166,7 @@ function TensePicker({ onChange, vps, mode }: { label: "Modal", value: "modal", }]} - handleChange={mode === "quiz" ? onTenseCategorySelect : () => null} + handleChange={mode !== "quiz" ? onTenseCategorySelect : () => null} /> } diff --git a/src/components/vp-explorer/VPExplorerQuiz.tsx b/src/components/vp-explorer/VPExplorerQuiz.tsx index b2955f6..88e69e2 100644 --- a/src/components/vp-explorer/VPExplorerQuiz.tsx +++ b/src/components/vp-explorer/VPExplorerQuiz.tsx @@ -87,7 +87,7 @@ function VPExplorerQuiz(props: { }, checkDuration * 2); } else { playAudio(`wrong-${randFromArray([1,2])}`); - navigator.vibrate(250); + navigator.vibrate(300); setQuizState({ ...quizState, result: "fail",