From 8ad69a0a0cc84eee669d72c984b25bbebe3a02b6 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Thu, 5 May 2022 14:49:42 -0500 Subject: [PATCH] up --- package.json | 2 +- src/components/vp-explorer/VPExplorer.tsx | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 15a7edc..2a47a16 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "2.4.2", + "version": "2.4.3", "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/VPExplorer.tsx b/src/components/vp-explorer/VPExplorer.tsx index 0992aff..8ffa088 100644 --- a/src/components/vp-explorer/VPExplorer.tsx +++ b/src/components/vp-explorer/VPExplorer.tsx @@ -180,7 +180,7 @@ function VPExplorer(props: { setShowingExplanation({ role: "servant", item: "subject" })}>{roleIcon.servant} {` `} {(rendered && rendered.whatsAdjustable !== "king") && - + {!servantIsShrunk ? "🪄" : "👶"} } @@ -211,7 +211,7 @@ function VPExplorer(props: { setShowingExplanation({ role: "servant", item: "object" })}>{roleIcon.servant} {` `} {(rendered && rendered.whatsAdjustable !== "king") && - + {!servantIsShrunk ? "🪄" : "👶"} } @@ -272,6 +272,8 @@ function getShareUrl(vps: T.VPSelectionState): string { const stringJSON = JSON.stringify(vps); const encoded = LZString.compressToEncodedURIComponent(stringJSON); const url = new URL(window.location.href); + // need to delete or else you could just get a second param written after + // which gets ignored url.searchParams.delete(phraseURLParam); url.searchParams.append(phraseURLParam, encoded); return url.toString();