From 7b6a1ea94ec750294fd5b3d5ad34a5123d2f6f04 Mon Sep 17 00:00:00 2001 From: Chase Fleming <1666730+chasefleming@users.noreply.github.com> Date: Mon, 26 Feb 2024 16:06:40 -0800 Subject: [PATCH] change error --- components/FundAccountSubmitted.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/FundAccountSubmitted.tsx b/components/FundAccountSubmitted.tsx index ff631b8..1bb5c3a 100644 --- a/components/FundAccountSubmitted.tsx +++ b/components/FundAccountSubmitted.tsx @@ -101,9 +101,9 @@ access(all) fun main(account: Address): UFix64 { setBalance("--") if (error instanceof Error) { - setBalanceError(error.message) + setBalanceError((error as Error).message) } else { - setBalanceError("An unknown error occurred") + setBalanceError("An error occurred") } } finally { setIsFetchingBalance(false)