fix(js/main): remove dead useState

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2026-03-24 19:20:23 +00:00
parent 380d7007ba
commit cada118a11

View File

@@ -92,7 +92,6 @@ function App({ anubisVersion, basePrefix }: AppProps) {
>("loading");
// Error info
const [errorTitle, setErrorTitle] = useState("");
const [errorMessage, setErrorMessage] = useState("");
const [errorImage, setErrorImage] = useState("");
@@ -119,7 +118,6 @@ function App({ anubisVersion, basePrefix }: AppProps) {
}
const showError = (title: string, message: string, imageSrc: string) => {
setErrorTitle(title);
setErrorMessage(message);
setErrorImage(imageSrc);
setPhase("error");