From c773ea0a0fce8bdf83453583069e56f46219f264 Mon Sep 17 00:00:00 2001 From: Martti Malmi Date: Thu, 4 Jan 2024 12:27:11 +0000 Subject: [PATCH] chore: Update translations --- packages/app/src/Cache/IndexedDB.ts | 15 +++++++-------- .../src/Element/IrisAccount/ReservedAccount.tsx | 6 +++++- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/packages/app/src/Cache/IndexedDB.ts b/packages/app/src/Cache/IndexedDB.ts index ddb7f5eb..3e4c5f48 100644 --- a/packages/app/src/Cache/IndexedDB.ts +++ b/packages/app/src/Cache/IndexedDB.ts @@ -121,9 +121,9 @@ class IndexedDB extends Dexie { // End timing and log the elapsed time console.timeEnd("subscribeToAuthors"); -}, 200); + }, 200); -subscribeToEventIds = this._throttle(async function (callback: (event: TaggedNostrEvent) => void) { + subscribeToEventIds = this._throttle(async function (callback: (event: TaggedNostrEvent) => void) { const ids = [...this.subscribedEventIds]; this.subscribedEventIds.clear(); @@ -132,9 +132,9 @@ subscribeToEventIds = this._throttle(async function (callback: (event: TaggedNos await this.events.where("id").anyOf(ids).each(callback); console.timeEnd("subscribeToEventIds"); -}, 200); + }, 200); -subscribeToTags = this._throttle(async function (callback: (event: TaggedNostrEvent) => void) { + subscribeToTags = this._throttle(async function (callback: (event: TaggedNostrEvent) => void) { const tagPairs = [...this.subscribedTags].map(tag => tag.split("|")); this.subscribedTags.clear(); @@ -148,9 +148,9 @@ subscribeToTags = this._throttle(async function (callback: (event: TaggedNostrEv await this.subscribeToEventIds(callback); console.timeEnd("subscribeToTags"); -}, 200); + }, 200); -subscribeToAuthorsAndKinds = this._throttle(async function (callback: (event: TaggedNostrEvent) => void) { + subscribeToAuthorsAndKinds = this._throttle(async function (callback: (event: TaggedNostrEvent) => void) { const authorsAndKinds = [...this.subscribedAuthorsAndKinds]; this.subscribedAuthorsAndKinds.clear(); @@ -164,8 +164,7 @@ subscribeToAuthorsAndKinds = this._throttle(async function (callback: (event: Ta await this.events.where("[pubkey+kind]").anyOf(pairs).each(callback); console.timeEnd("subscribeToAuthorsAndKinds"); -}, 200); - + }, 200); async find(filter: Filter, callback: (event: TaggedNostrEvent) => void): Promise { if (!filter) return; diff --git a/packages/app/src/Element/IrisAccount/ReservedAccount.tsx b/packages/app/src/Element/IrisAccount/ReservedAccount.tsx index 5043275d..c1878e82 100644 --- a/packages/app/src/Element/IrisAccount/ReservedAccount.tsx +++ b/packages/app/src/Element/IrisAccount/ReservedAccount.tsx @@ -7,7 +7,11 @@ interface ReservedAccountProps { declineReserved: () => void; } -export default function ReservedAccount({ name = "", enableReserved = () => {}, declineReserved = () => {} }: ReservedAccountProps) { +export default function ReservedAccount({ + name = "", + enableReserved = () => {}, + declineReserved = () => {}, +}: ReservedAccountProps) { return (