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

@@ -90,7 +90,7 @@ const NTPStatusForm: FC = () => {
});
toast.success(LL.TIME_SET());
setSettingTime(false);
void loadData();
await loadData();
} catch (error) {
toast.error(extractErrorMessage(error, LL.PROBLEM_UPDATING()));
} finally {