From ff85394e0260976bad3885ac2c5905fc42f92bd3 Mon Sep 17 00:00:00 2001 From: Nerdpie Date: Thu, 12 Dec 2024 06:07:53 -0500 Subject: [PATCH] BUGFIX: Fix Text Effect Preventing Company Name Updates (#1828) --- src/ui/React/CorruptableText.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/React/CorruptableText.tsx b/src/ui/React/CorruptableText.tsx index 2d602fe02..189dff9e9 100644 --- a/src/ui/React/CorruptableText.tsx +++ b/src/ui/React/CorruptableText.tsx @@ -30,12 +30,12 @@ export function CorruptableText(props: CorruptableTextProps): JSX.Element { const [content, setContent] = useState(props.content); useEffect(() => { + setContent(props.content); + if (Settings.DisableTextEffects) { return; } - setContent(props.content); - let counter = 5; const timers: number[] = []; const intervalId = setInterval(() => {