Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
rubelux committed Oct 26, 2023
1 parent acb144a commit 262ac64
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "artizen-frontend",
"version": "0.1.48",
"version": "0.1.49",
"private": true,
"scripts": {
"clean": "rm -rf .next",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/useContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const useContracts = ({ args, value, functionName, eventName, warming }:
)
const { login, authenticated, ready } = usePrivy()
const chainId = assertInt(process.env.NEXT_PUBLIC_CHAIN_ID, 'NEXT_PUBLIC_CHAIN_ID')
const chainName = chainId === 1 ? 'Etherium' : 'Goerli Testnet'
const chainName = chainId === 1 ? 'Ethereum' : 'Goerli Testnet'
const ERRORNETWORK = `You have logged onto wrong network, please logout and login again using: ${chainName}`
const NON_ENOUGH_FUNDS = `You do not have enough funds in your wallet to mint this open edition`

Expand Down
6 changes: 5 additions & 1 deletion src/lib/useFullSignOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ export const useFullSignOut = () => {
const { logout } = usePrivy()

const disconnectAndSignout = async () => {
logout()
await disconnect()
try {
logout()
} catch (e) {
console.log(e)
}

deleteCookie('privy-token')
deleteCookie('didToken')
Expand Down

0 comments on commit 262ac64

Please sign in to comment.