Skip to content

Commit

Permalink
remove unnecessary method
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathansoufer committed Oct 15, 2024
1 parent 2f35518 commit 29937a6
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions app/util/notifications/hooks/useSwitchNotifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,31 +75,6 @@ export function useSwitchNotifications() {
};
}

export function useRefetchAccountSettings(
isMetamaskNotificationsEnabled: boolean,
) {
const getAccountSettings = useCallback(
async (accounts: string[]): Promise<UseSwitchAccountNotificationsData> => {
try {
if (!isMetamaskNotificationsEnabled) {
return {};
}
const result =
await Engine.context.NotificationServicesController.checkAccountsPresence(
accounts,
);

return result;
} catch {
return {};
}
},
[isMetamaskNotificationsEnabled],
);

return { getAccountSettings };
}

/**
* Account Settings Hook.
* Gets initial loading states, and returns enable/disable account states.
Expand Down

0 comments on commit 29937a6

Please sign in to comment.