mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix toasts
This commit is contained in:
@@ -46,7 +46,7 @@ const All = () => {
|
||||
|
||||
const account = useAccount();
|
||||
const navigate = useNavigate();
|
||||
const setErrorMessage = useError();
|
||||
const [errorMessage, setErrorMessage] = useError();
|
||||
|
||||
const threadMenuRefs = useRef({});
|
||||
const replyMenuRefs = useRef({});
|
||||
@@ -85,10 +85,10 @@ const All = () => {
|
||||
}, [subplebbits])
|
||||
|
||||
useEffect(() => {
|
||||
if (errorString) {
|
||||
setErrorMessage(errorString)
|
||||
if (errorString && errorString !== errorMessage) {
|
||||
setErrorMessage(errorString);
|
||||
}
|
||||
}, [errorString, setErrorMessage])
|
||||
}, [errorString, setErrorMessage, errorMessage]);
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user