Skip to content

Commit

Permalink
error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammedea committed Apr 4, 2024
1 parent 2b66541 commit b3eb157
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pages/ClaimNewUbeToken/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export function useConvertCallback(): [
summary: `Convert to new UBE`,
})
} catch (e) {
console.log(e)
console.error(e)
} finally {
setIsPending(false)
}
Expand Down Expand Up @@ -146,7 +146,7 @@ export default function ClaimNewUbeToken() {
setWhitelist(data)
})
.catch((error) => {
console.log(error)
console.error(error)
setWhitelistLoading(false)
})
}, [])
Expand Down Expand Up @@ -191,7 +191,7 @@ export default function ClaimNewUbeToken() {
setTypedValue(value)
}, [])
const handleTypeOutput = useCallback((value: string) => {

Check warning on line 193 in src/pages/ClaimNewUbeToken/index.tsx

View workflow job for this annotation

GitHub Actions / Run linters

'value' is defined but never used
console.log('This should not happen')
console.error('handleTypeOutput can not change')
}, [])

// Approval process
Expand All @@ -211,7 +211,7 @@ export default function ClaimNewUbeToken() {
//
})
.catch((error) => {
console.log(error)
console.error(error)
})
}, [approveCallback])

Expand Down Expand Up @@ -247,7 +247,7 @@ export default function ClaimNewUbeToken() {
})
.catch((error) => {
console.log('xxx')
console.log(error)
console.error(error)
})
}, [convertCallback, account, parsedAmount, whitelist])

Expand Down

0 comments on commit b3eb157

Please sign in to comment.