Skip to content

Commit

Permalink
update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
chasefleming committed Feb 27, 2024
1 parent 7b6a1ea commit 502a166
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions components/FundAccountSubmitted.tsx
Expand Up @@ -99,12 +99,7 @@ access(all) fun main(account: Address): UFix64 {
setBalance(balance)
} catch (error) {
setBalance("--")

if (error instanceof Error) {
setBalanceError((error as Error).message)
} else {
setBalanceError("An error occurred")
}
setBalanceError("An error occurred")
} finally {
setIsFetchingBalance(false)
}
Expand Down

0 comments on commit 502a166

Please sign in to comment.