From f2c9f5efcf0e4b6cc3bc374984c17cb8970e3399 Mon Sep 17 00:00:00 2001 From: Kushdeep Singh Date: Wed, 8 Jan 2025 13:42:18 +0530 Subject: [PATCH] DMAPP-149: Minor fix in Pill component --- src/components/pill/Pill.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/pill/Pill.tsx b/src/components/pill/Pill.tsx index 874bd5a71..fbf6bf242 100644 --- a/src/components/pill/Pill.tsx +++ b/src/components/pill/Pill.tsx @@ -5,7 +5,7 @@ import Globals from 'src/Globals'; import {PillProps} from '.'; const Pill: FC = ({data, value, onChange, disabled}) => { - const isActive = data.value === value; + const isActive = useMemo(() => data.value === value, [value]); return (