Skip to content

Commit

Permalink
change error
Browse files Browse the repository at this point in the history
  • Loading branch information
chasefleming committed Feb 27, 2024
1 parent 56772d9 commit 7b6a1ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/FundAccountSubmitted.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7b6a1ea

Please sign in to comment.