diff --git a/packages/interface/src/contexts/Maci.tsx b/packages/interface/src/contexts/Maci.tsx index b38857f8..a902997a 100644 --- a/packages/interface/src/contexts/Maci.tsx +++ b/packages/interface/src/contexts/Maci.tsx @@ -310,9 +310,17 @@ export const MaciProvider: React.FC = ({ children }: MaciProv signer, }) .then(() => onSuccess()) - .catch((err: Error) => { - setError(err.message); - return onError(err.message); + .catch((err: unknown) => { + if ((err as { code: string }).code === "ACTION_REJECTED") { + setError("Transaction rejected"); + return onError("Transaction rejected"); + } + if (err instanceof Error) { + setError(err.message); + return onError(err.message); + } + setError(String(err)); + return onError(String(err)); }) .finally(() => { setIsLoading(false); diff --git a/packages/interface/src/features/rounds/components/RoundItem.tsx b/packages/interface/src/features/rounds/components/RoundItem.tsx index d9cac9cb..5f232857 100644 --- a/packages/interface/src/features/rounds/components/RoundItem.tsx +++ b/packages/interface/src/features/rounds/components/RoundItem.tsx @@ -72,7 +72,7 @@ export const RoundItem = ({ round }: IRoundItemProps): JSX.Element => { {round.roundId} -
{round.description}
+
{round.description}