replace void with await

This commit is contained in:
Proddy
2023-04-24 21:39:30 +02:00
parent 7d526196a0
commit b59c76df3b
12 changed files with 15 additions and 15 deletions

View File

@@ -95,7 +95,7 @@ const SettingsApplication: FC = () => {
try {
setFieldErrors(undefined);
await validate(createSettingsValidator(data), data);
void saveData();
await saveData();
} catch (errors: any) {
setFieldErrors(errors);
}
@@ -115,7 +115,7 @@ const SettingsApplication: FC = () => {
};
const restart = async () => {
void validateAndSubmit();
await validateAndSubmit();
try {
await EMSESP.restart();
setRestarting(true);