Skip to content

Commit

Permalink
Merge pull request #831 from gympass/EXUX-950
Browse files Browse the repository at this point in the history
fix: [EXUX-950] TextWithBedge re-render issue fix
  • Loading branch information
rafaelcoletagympass authored Jun 14, 2024
2 parents 1f049aa + afb1995 commit d44dc41
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ const TextWithBadge = ({
layout: { width },
},
}) => {
setTextSize(width);
if (textSize === 0) {
setTextSize(width);
}
},
[],
[textSize],
);

return (
Expand Down

0 comments on commit d44dc41

Please sign in to comment.