Skip to content

Commit

Permalink
chore: Remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
memoyil committed Oct 31, 2024
1 parent bb34914 commit 0540587
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/hooks/usePCSX.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const usePCSX = () => {
(updater: boolean | ((current: boolean) => boolean)) => {
setX(typeof updater === 'function' ? updater(enabled) : updater)
},
[enabled],
[enabled, setX],
)
return [enabled, setUserX, featureEnabled, reset] as const
}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/hooks/useSwitchNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function useSwitchNetworkLocal() {

return useCallback(
(newChainId: number) => {
const { chainId, ...restQuery } = router.query
const { chainId: _, ...restQuery } = router.query

router.replace(
{
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/views/Home/components/Banners/PCSXBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const Desc = () => {

export const PCSXBanner = () => {
const { t } = useTranslation()
const { isMobile, isSm, isDesktop } = useMatchBreakpoints()
const { isMobile, isSm } = useMatchBreakpoints()

const PlayNowAction = (
<LinkExternalAction
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/views/Voting/Proposal/Vote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const VoteComponent: React.FC<React.PropsWithChildren<VoteProps>> = ({
setVote(newData)
}
}
}, [account])
}, [account, proposal, votes])

const handleSuccess = async () => {
toastSuccess(t('Vote cast!'))
Expand Down

0 comments on commit 0540587

Please sign in to comment.