BUGFIX: Fix Text Effect Preventing Company Name Updates (#1828)

This commit is contained in:
Nerdpie 2024-12-12 06:07:53 -05:00 committed by GitHub
parent 37ddb43b82
commit ff85394e02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -30,12 +30,12 @@ export function CorruptableText(props: CorruptableTextProps): JSX.Element {
const [content, setContent] = useState(props.content); const [content, setContent] = useState(props.content);
useEffect(() => { useEffect(() => {
setContent(props.content);
if (Settings.DisableTextEffects) { if (Settings.DisableTextEffects) {
return; return;
} }
setContent(props.content);
let counter = 5; let counter = 5;
const timers: number[] = []; const timers: number[] = [];
const intervalId = setInterval(() => { const intervalId = setInterval(() => {