Skip to content

Commit

Permalink
fixed linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dappsar committed Nov 14, 2023
1 parent 5e6e7e1 commit 788f192
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
9 changes: 3 additions & 6 deletions src/context/Web3ContextNew.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,10 @@ const Web3ContextProvider = ({ children }) => {
}
}

const setLanguage = useCallback(() => {
const updateLocale = useSetLocale()
updateLocale(languageSetted || 'en')
})

const connectWallet = useCallback(() => {
setLanguage()
// const updateLocale = useSetLocale()
// updateLocale(languageSetted || 'en')

web3Onboard.connectWallet()
.then((wallets) => {
if (wallets) {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useRef, useEffect } from 'react'
import React, { useRef } from 'react'
import Head from 'next/head'
import Navbar from '../components/Navbar'
import Footer from '../components/Footer'
Expand Down
4 changes: 2 additions & 2 deletions src/sections/Alpha/AlphaCards.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ const AlphaCards = ({ loadAlbums, setLoadAlbums, alphaMidButton }) => {
}

useEffect(() => {
setSeasonData().then((res) => {
setSeasonData().then(() => {
stopLoading()
}).catch((e) => {
}).catch((ex) => {
stopLoading()
console.error(ex)
})
Expand Down

0 comments on commit 788f192

Please sign in to comment.