Skip to content

Commit

Permalink
feat: fix issue with sounds (#3279)
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin committed Oct 26, 2023
1 parent ec2428a commit 52f9d65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions apps/cowswap-frontend/src/legacy/state/cowToken/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ export const cowTokenMiddleware: Middleware<Record<string, unknown>, 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ export const soundMiddleware: Middleware<Record<string, unknown>, 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
Expand Down

0 comments on commit 52f9d65

Please sign in to comment.