From 44fc1323a456ba05260eef44e8d360346f9fca50 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Wed, 3 Nov 2021 18:18:38 -0400 Subject: [PATCH] oops --- package.json | 2 +- src/components/ButtonSelect.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d708c6e..01b2d0e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "1.4.3", + "version": "1.4.4", "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/ButtonSelect.tsx b/src/components/ButtonSelect.tsx index 2157cc0..e4a9eaf 100644 --- a/src/components/ButtonSelect.tsx +++ b/src/components/ButtonSelect.tsx @@ -34,7 +34,7 @@ function ButtonSelect(props: PickerProps) { style={{ ...props.xSmall ? { fontSize: "small" }: {}, - ...option.color ? + ...(option.color && (props.value === option.value)) ? { backgroundColor: option.color } : {}, }} >