fix: new-site page balance error caused by dependencies update
This commit is contained in:
parent
42f5075c3a
commit
94c558a550
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue