Skip to content

Commit

Permalink
Merge pull request #105 from P4-Games/feature/transfer-card
Browse files Browse the repository at this point in the history
fixed linter errors
  • Loading branch information
dappsar authored Nov 14, 2023
2 parents 408755a + 788f192 commit f9e05eb
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 f9e05eb

Please sign in to comment.