diff --git a/core/src/types/index.tsx b/core/src/types/index.tsx index 34b818ac..809c32b7 100644 --- a/core/src/types/index.tsx +++ b/core/src/types/index.tsx @@ -60,8 +60,8 @@ export const TypeString: FC = ({ children = '', keyName }) => { const { shortenTextAfterLength: length = 30 } = useStore(); const { as, render, ...reset } = Str; const childrenStr = children as string; - const [shorten, setShorten] = useState(length && childrenStr.length >= length); - useEffect(() => setShorten(length && childrenStr.length >= length), [length]); + const [shorten, setShorten] = useState(length && childrenStr.length > length); + useEffect(() => setShorten(length && childrenStr.length > length), [length]); const Comp = as || 'span'; const style: React.CSSProperties = { ...defalutStyle,