Skip to content

Commit

Permalink
fixup! Remove price-change push event subscription for deprecated cur…
Browse files Browse the repository at this point in the history
…rencies
  • Loading branch information
samholmes committed Oct 20, 2023
1 parent 96edfb0 commit 21e3e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actions/NotificationActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function registerNotificationsV2(changeFiat: boolean = false): ThunkActio
const { trigger } = event
if (trigger.type === 'price-change') {
const currencyInfo = activeCurrencyInfos.find(currencyInfo => currencyInfo.pluginId === trigger.pluginId)
if (currencyInfo == null || SPECIAL_CURRENCY_INFO[currencyInfo.pluginId].keysOnlyMode) {
if (currencyInfo != null && SPECIAL_CURRENCY_INFO[currencyInfo.pluginId].keysOnlyMode) {
removeEvents.push(event.eventId)
}
}
Expand Down

0 comments on commit 21e3e1e

Please sign in to comment.