callRestart to doRestart

This commit is contained in:
proddy
2024-08-31 16:13:31 +02:00
parent b787b975a2
commit e023e74057

View File

@@ -32,7 +32,7 @@ function LinearProgressWithLabel(props: LinearProgressProps & { value: number })
); );
} }
const SingleUpload = ({ callRestart }) => { const SingleUpload = ({ doRestart }) => {
const [md5, setMd5] = useState<string>(); const [md5, setMd5] = useState<string>();
const [file, setFile] = useState<File>(); const [file, setFile] = useState<File>();
const { LL } = useI18nContext(); const { LL } = useI18nContext();
@@ -50,7 +50,7 @@ const SingleUpload = ({ callRestart }) => {
toast.success(LL.UPLOAD() + ' MD5 ' + LL.SUCCESSFUL()); toast.success(LL.UPLOAD() + ' MD5 ' + LL.SUCCESSFUL());
setFile(undefined); setFile(undefined);
} else { } else {
callRestart(); doRestart();
} }
}); });