Fix ErrorSection text replacement
This commit is contained in:
parent
5cf6d3fff3
commit
96763defc3
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue