diff --git a/src/components/token/TokenLabel.js b/src/components/token/TokenLabel.js index 19eaa88..457fd76 100644 --- a/src/components/token/TokenLabel.js +++ b/src/components/token/TokenLabel.js @@ -45,7 +45,7 @@ function TokenLabel({ tokenState, width, height }) { } findFontSize(); - }, [width, height, tokenState, labelSize, paddingX]); + }, [tokenState.label, width, height, tokenState, labelSize, paddingX]); const [rectWidth, setRectWidth] = useState(0); useEffect(() => {