fix: new-site page balance error caused by dependencies update

This commit is contained in:
DIYgod 2022-10-02 18:15:41 +01:00
parent 42f5075c3a
commit 94c558a550
No known key found for this signature in database
GPG Key ID: D159328F47A80DCA
1 changed files with 3 additions and 1 deletions

View File

@ -41,7 +41,9 @@ export default function NewSitePage() {
if (balance !== undefined) {
setBalanceFormatted(balance.formatted)
if (
balance.value.gt(BigNumber.from("1" + "0".repeat(balance.decimals - 2)))
BigNumber.from(balance.value).gt(
BigNumber.from("1" + "0".repeat(balance.decimals - 2)),
)
) {
setInsufficientBalance(false)
} else {