Skip to content

Commit

Permalink
Rename toggleGroupNotifications arg wallets to walletNotificationSett…
Browse files Browse the repository at this point in the history
…ingsToBeUpdated
  • Loading branch information
jinchung committed Oct 17, 2024
1 parent 3560fc3 commit 320ae80
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/notifications/settings/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,14 @@ export const removeNotificationSettingsForWallet = async (address: string): Prom
Also used to batch toggle notifications for a single wallet
when using the `Allow Notifications` switch in the wallet settings view.
*/
export async function toggleGroupNotifications(wallets: WalletNotificationSettings[], enableNotifications: boolean): Promise<boolean> {
export async function toggleGroupNotifications(
walletNotificationSettingsToUpdate: WalletNotificationSettings[],
enableNotifications: boolean
): Promise<boolean> {
const walletSettings = getAllWalletNotificationSettingsFromStorage();
const globalSettings = getAllGlobalNotificationSettingsFromStorage();
const toBeUpdated = new Map<string, boolean>();
wallets.forEach(entry => {
walletNotificationSettingsToUpdate.forEach(entry => {
toBeUpdated.set(entry.address, true);
});

Expand Down

0 comments on commit 320ae80

Please sign in to comment.