use console.error

pull/2723/head
yann300 2 years ago
parent 2566b6c0e9
commit 0e458eaee8
  1. 4
      apps/etherscan/src/app/hooks/useLocalStorage.tsx
  2. 2
      apps/etherscan/src/app/utils/utilities.ts
  3. 2
      apps/etherscan/src/app/views/VerifyView.tsx

@ -11,7 +11,7 @@ export function useLocalStorage(key: string, initialValue: any) {
return item ? JSON.parse(item) : initialValue
} catch (error) {
// If error also return initialValue
console.log(error)
console.error(error)
return initialValue
}
})
@ -29,7 +29,7 @@ export function useLocalStorage(key: string, initialValue: any) {
window.localStorage.setItem(key, JSON.stringify(valueToStore))
} catch (error) {
// A more advanced implementation would handle the error case
console.log(error)
console.error(error)
}
}

@ -29,6 +29,6 @@ export const getReceiptStatus = async (
const { result } = response.data
return result
} catch (error) {
console.log("Error", error)
console.error(error)
}
}

@ -170,7 +170,7 @@ export const VerifyView: React.FC<Props> = ({
}
return result
} catch (error) {
console.log("Error, something wrong happened", error)
console.error(error)
setResults("Something wrong happened, try again")
}
}

Loading…
Cancel
Save