Add missing await

This commit is contained in:
nimbleghost 2023-06-14 14:31:31 +02:00
parent 7083ed9f6b
commit 67b9d2eaf6
2 changed files with 3 additions and 2 deletions

View File

@ -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() {

View File

@ -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";