fix return value of verify

pull/3102/head
yann300 2 years ago committed by Aniket
parent 8322f27967
commit f45eecde61
  1. 11
      apps/etherscan/src/app/utils/verify.ts

@ -120,10 +120,17 @@ export const verify = async (
resetAfter10Seconds(client, setResults)
return returnValue
}
return result
} catch (error) {
return {
message: 'unknown reason ' + result,
succeed: false
}
} catch (error: any) {
console.error(error)
setResults("Something wrong happened, try again")
return {
message: error.message,
succeed: false
}
}
}

Loading…
Cancel
Save