Add missing await
This commit is contained in:
@@ -24,7 +24,7 @@ class Prefs {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async setDeleteAfter(deleteAfter) {
|
async setDeleteAfter(deleteAfter) {
|
||||||
this.db.prefs.put({ key: "deleteAfter", value: deleteAfter.toString() });
|
await this.db.prefs.put({ key: "deleteAfter", value: deleteAfter.toString() });
|
||||||
}
|
}
|
||||||
|
|
||||||
async deleteAfter() {
|
async deleteAfter() {
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ import {
|
|||||||
Tooltip,
|
Tooltip,
|
||||||
Typography,
|
Typography,
|
||||||
Box,
|
Box,
|
||||||
IconButton, Button
|
IconButton,
|
||||||
|
Button,
|
||||||
} from "@mui/material";
|
} from "@mui/material";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { useContext, useState } from "react";
|
import { useContext, useState } from "react";
|
||||||
|
|||||||
Reference in New Issue
Block a user