Skip to content

Commit c47ecbd

Browse files
committed
fix: another bigint notation fix
1 parent 87d7c6f commit c47ecbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/hooks/useParsedAmount.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ import { useMemo } from "react";
22
import { parseUnits } from "viem";
33

44
export function useParsedAmount(amount: string): bigint {
5-
return useMemo(() => (amount === "" ? BigInt(0) : parseUnits(`${parseInt(amount)}`, 18)), [amount]);
5+
return useMemo(() => (amount === "" ? 0n : parseUnits(`${parseInt(amount)}`, 18)), [amount]);
66
}

0 commit comments

Comments
 (0)