diff --git a/src/notifications/settings/firebase.ts b/src/notifications/settings/firebase.ts index 6caa9c7b635..34c06187412 100644 --- a/src/notifications/settings/firebase.ts +++ b/src/notifications/settings/firebase.ts @@ -1,6 +1,5 @@ import { NOTIFICATIONS_API_KEY } from 'react-native-dotenv'; import { logger, RainbowError } from '@/logger'; -import { supportedNotificationsChainIds } from '@/chains'; import { GlobalNotificationTopics, GlobalNotificationTopicType, @@ -138,15 +137,12 @@ export const publishWalletSettings = async ({ const parseWalletSettings = (walletSettings: WalletNotificationSettings[]): NotificationSubscriptionWalletsType[] => { const enabledWalletSettings = walletSettings.filter(setting => setting.enabled); - return enabledWalletSettings.flatMap(setting => { + return enabledWalletSettings.map(setting => { const topics = Object.keys(setting.topics).filter(topic => !!setting.topics[topic]); - return supportedNotificationsChainIds.map(chainId => { - return { - type: setting.type, - chain_id: chainId, - address: setting.address.toLowerCase(), - transaction_action_types: topics, - }; - }); + return { + type: setting.type, + address: setting.address.toLowerCase(), + transaction_action_types: topics, + }; }); }; diff --git a/src/notifications/settings/types.ts b/src/notifications/settings/types.ts index 8a2370e525b..4f218adaa56 100644 --- a/src/notifications/settings/types.ts +++ b/src/notifications/settings/types.ts @@ -16,7 +16,6 @@ export type GlobalNotificationTopics = { export type NotificationSubscriptionWalletsType = { type: WalletNotificationRelationshipType; - chain_id: number; address: string; transaction_action_types: WalletNotificationTopicType[]; };