From 52f9d65804c9871a97b09da46d34516bc03c6cb0 Mon Sep 17 00:00:00 2001 From: Anxo Rodriguez Date: Thu, 26 Oct 2023 18:34:38 +0100 Subject: [PATCH] feat: fix issue with sounds (#3279) --- .../cowswap-frontend/src/legacy/state/cowToken/middleware.ts | 5 +++-- .../src/legacy/state/orders/middleware/soundMiddleware.ts | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/cowswap-frontend/src/legacy/state/cowToken/middleware.ts b/apps/cowswap-frontend/src/legacy/state/cowToken/middleware.ts index a1212abec9..634c7ddf11 100644 --- a/apps/cowswap-frontend/src/legacy/state/cowToken/middleware.ts +++ b/apps/cowswap-frontend/src/legacy/state/cowToken/middleware.ts @@ -19,8 +19,9 @@ export const cowTokenMiddleware: Middleware, AppState> = const { chainId, hash } = action.payload const transaction = store.getState().transactions[chainId][hash] - const { userDarkMode, matchesDarkMode } = store.getState().user - const isDarkMode = userDarkMode === null ? matchesDarkMode : userDarkMode + // const { userDarkMode, matchesDarkMode } = store.getState().user + // const isDarkMode = userDarkMode === null ? matchesDarkMode : userDarkMode + const isDarkMode = true // TODO: revert after halloween if (transaction.swapVCow || transaction.swapLockedGNOvCow) { const status = transaction.receipt?.status diff --git a/apps/cowswap-frontend/src/legacy/state/orders/middleware/soundMiddleware.ts b/apps/cowswap-frontend/src/legacy/state/orders/middleware/soundMiddleware.ts index 86c12e784c..7832744e8b 100644 --- a/apps/cowswap-frontend/src/legacy/state/orders/middleware/soundMiddleware.ts +++ b/apps/cowswap-frontend/src/legacy/state/orders/middleware/soundMiddleware.ts @@ -59,8 +59,9 @@ export const soundMiddleware: Middleware, AppState> = (s } } - const { userDarkMode, matchesDarkMode } = store.getState().user - const isDarkMode = userDarkMode === null ? matchesDarkMode : userDarkMode + // const { userDarkMode, matchesDarkMode } = store.getState().user + // const isDarkMode = userDarkMode === null ? matchesDarkMode : userDarkMode + const isDarkMode = true // TODO: revert after halloween let cowSound let showLighningEffect = false