Skip to content

Commit d6c3398

Browse files
authored
fix: provide default value to convert (#104)
1 parent 2970d52 commit d6c3398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/common/BNInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export function BNInput({
6666

6767
if (value) {
6868
const valueAsString = bigIntToString(value, denomination);
69-
const oldValue = stringToBigint(valStr, denomination);
69+
const oldValue = stringToBigint(valStr || '0', denomination);
7070
/**
7171
* When deleting zeros after decimal, all zeros delete without this check.
7272
* This also preserves zeros in the input ui.

0 commit comments

Comments
 (0)