reason gives a friendlier error message

This commit is contained in:
luxumbra
2022-09-01 14:59:32 +01:00
committed by Alec LaLonde
parent 9be623c199
commit f2181d91ee

View File

@@ -286,7 +286,7 @@ export const GameContextProvider: React.FC = ({ children }) => {
return receipt;
} catch (error: any) {
console.log('mintChiev error', { error });
const msg = (error?.message as string) || 'unknown error';
const msg = (error?.reason as string) || 'unknown error';
toast({
title: 'Claim failed',
description: msg,