diff --git a/moneymgr_web/src/routes/AccountRoute.tsx b/moneymgr_web/src/routes/AccountRoute.tsx
index 1f55a0b..08c4ff8 100644
--- a/moneymgr_web/src/routes/AccountRoute.tsx
+++ b/moneymgr_web/src/routes/AccountRoute.tsx
@@ -377,7 +377,7 @@ function MovementsTable(p: {
variant="standard"
size="small"
value={labelFilter}
- onChange={(e) => setLabelFilter(e.target.value)}
+ onChange={(e) => { setLabelFilter(e.target.value); }}
style={{ padding: "0px", flex: 1 }}
/>
diff --git a/moneymgr_web/src/routes/BackupRoute.tsx b/moneymgr_web/src/routes/BackupRoute.tsx
index 2f192ca..87af5d6 100644
--- a/moneymgr_web/src/routes/BackupRoute.tsx
+++ b/moneymgr_web/src/routes/BackupRoute.tsx
@@ -38,7 +38,7 @@ export function BackupRoute(): React.ReactElement {
}
importWarning="Existing data will be COMPLETELY ERASED, before starting import!"
exportURL={BackupApi.ZIPExportURL}
- onImport={BackupApi.ZIPImport}
+ onImport={(f) => BackupApi.ZIPImport(f)}
acceptedFiles={"application/zip"}
/>
@@ -62,7 +62,7 @@ export function BackupRoute(): React.ReactElement {
}
importWarning="Existing data will not be touched, movement will be inserted in newly created accounts."
exportURL={BackupApi.FinancesManagerExportURL}
- onImport={BackupApi.FinancesManagerImport}
+ onImport={(f) => BackupApi.FinancesManagerImport(f)}
/>
{/* Excel */}
@@ -100,9 +100,11 @@ function ImportExportModal(p: {
fileEl.click();
// Wait for a file to be chosen
- await new Promise((res, _rej) =>
- fileEl.addEventListener("change", () => res(null))
- );
+ await new Promise((res) => {
+ fileEl.addEventListener("change", () => {
+ res(null);
+ });
+ });
if (fileEl.files?.length === 0) return;
diff --git a/moneymgr_web/src/widgets/NewMovementWidget.tsx b/moneymgr_web/src/widgets/NewMovementWidget.tsx
index 62d826a..bce0e41 100644
--- a/moneymgr_web/src/widgets/NewMovementWidget.tsx
+++ b/moneymgr_web/src/widgets/NewMovementWidget.tsx
@@ -113,7 +113,7 @@ export function NewMovementWidget(
>
- setFile(undefined)}>
+ { setFile(undefined); }}>
>