From 67b9d2eaf6173bc37c483fccfea493f903991d20 Mon Sep 17 00:00:00 2001 From: nimbleghost <132819643+nimbleghost@users.noreply.github.com> Date: Wed, 14 Jun 2023 14:31:31 +0200 Subject: [PATCH] Add missing await --- web/src/app/Prefs.js | 2 +- web/src/components/Navigation.jsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/app/Prefs.js b/web/src/app/Prefs.js index 4826e061..f580c620 100644 --- a/web/src/app/Prefs.js +++ b/web/src/app/Prefs.js @@ -24,7 +24,7 @@ class Prefs { } async setDeleteAfter(deleteAfter) { - this.db.prefs.put({ key: "deleteAfter", value: deleteAfter.toString() }); + await this.db.prefs.put({ key: "deleteAfter", value: deleteAfter.toString() }); } async deleteAfter() { diff --git a/web/src/components/Navigation.jsx b/web/src/components/Navigation.jsx index 5c48a456..fe1cf8be 100644 --- a/web/src/components/Navigation.jsx +++ b/web/src/components/Navigation.jsx @@ -16,7 +16,8 @@ import { Tooltip, Typography, Box, - IconButton, Button + IconButton, + Button, } from "@mui/material"; import * as React from "react"; import { useContext, useState } from "react";