From 32ed298d271ea6fd55ffd2f8f4919c5809167e30 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Thu, 4 Jan 2024 15:34:17 -0500 Subject: [PATCH] fix(striker-ui): correct type of indicator value in IconWithIndicator --- striker-ui/components/IconWithIndicator.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/striker-ui/components/IconWithIndicator.tsx b/striker-ui/components/IconWithIndicator.tsx index 0d3bf834..d6a07814 100644 --- a/striker-ui/components/IconWithIndicator.tsx +++ b/striker-ui/components/IconWithIndicator.tsx @@ -127,7 +127,7 @@ const IconWithIndicator = forwardRef< ...indicatorTextSx, }} > - {value > INDICATOR_MAX ? `${INDICATOR_MAX}+` : value} + {Number(value) > INDICATOR_MAX ? `${INDICATOR_MAX}+` : value} ), [indicatorTextSx, restIndicatorTextProps],