From c1b7a1b02fd946cab3b6f1e772d06b64f1ff133f Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 29 Jan 2024 12:41:42 +0100 Subject: -type error --- .../src/wallet/DeveloperPage.tsx | 36 ++++++++++++---------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/packages/taler-wallet-webextension/src/wallet/DeveloperPage.tsx b/packages/taler-wallet-webextension/src/wallet/DeveloperPage.tsx index 0a01b8a95..faa64e07d 100644 --- a/packages/taler-wallet-webextension/src/wallet/DeveloperPage.tsx +++ b/packages/taler-wallet-webextension/src/wallet/DeveloperPage.tsx @@ -42,7 +42,6 @@ import { Paper } from "../mui/Paper.js"; import { TextField } from "../mui/TextField.js"; export function DeveloperPage(): VNode { - const listenAllEvents = Array.from({ length: 1 }); const api = useBackendContext(); @@ -113,11 +112,7 @@ function hashObjectId(o: any): string { return JSON.stringify(o); } -export function View({ - operations, - coins, - onDownloadDatabase, -}: Props): VNode { +export function View({ operations, coins, onDownloadDatabase }: Props): VNode { const { i18n } = useTranslationContext(); const [downloadedDatabase, setDownloadedDatabase] = useState< { time: Date; content: string } | undefined @@ -133,7 +128,7 @@ export function View({ const fileRef = useRef(null); async function onImportDatabase(str: string): Promise { - return api.wallet.call(WalletApiOperation.ImportDb, { + await api.wallet.call(WalletApiOperation.ImportDb, { dump: JSON.parse(str), }); } @@ -258,16 +253,22 @@ export function View({ - - @@ -398,12 +399,14 @@ export function View({ {downloadedDatabase && (
- Database exported at
)} -- cgit v1.2.3