Fix ErrorSection text replacement

This commit is contained in:
Justin Edmund 2023-01-28 17:42:54 -08:00
parent 5cf6d3fff3
commit 96763defc3

View file

@ -18,7 +18,7 @@ const ErrorSection = ({ status }: Props) => {
const [statusText, setStatusText] = useState('') const [statusText, setStatusText] = useState('')
useEffect(() => { useEffect(() => {
setStatusText(status.text.replace(' ', '_').toLowerCase()) setStatusText(status.text.replaceAll(' ', '_').toLowerCase())
}, [status.text]) }, [status.text])
const errorBody = () => { const errorBody = () => {