Reformatted the ConfigContext.jsx

This commit is contained in:
Mathias Wagner
2022-10-16 14:35:57 +02:00
parent 919041729d
commit f9550b7e97
@@ -12,9 +12,9 @@ export const ConfigProvider = (props) => {
const reloadConfig = () => {
request("/config").then(res => {
if (!res.ok) throw "No connection to server";
return res.json();
})
if (!res.ok) throw "No connection to server";
return res.json();
})
.then(result => setConfig(result))
.catch(() => setDialog(passwordRequiredDialog));
}