mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
reason gives a friendlier error message
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user