Skip to content

Commit

Permalink
fix: remove await
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanjoshi914 committed Sep 6, 2024
1 parent 9edef3b commit d1abf5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension/background-script/actions/nostr/enable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ const enable = async (message: MessageAllowanceEnable, sender: Sender) => {
];
// when addding multiple permissions at once, the flow shall wait until all asynchronous addPermissionFor calls are completed.
await Promise.all(
reasonableEventKindIds.map(async (kindId) => {
await addPermissionFor(
reasonableEventKindIds.map((kindId) => {
addPermissionFor(
PermissionMethodNostr.NOSTR_SIGNMESSAGE + "/" + kindId,
host,
false
Expand Down

0 comments on commit d1abf5e

Please sign in to comment.