diff --git a/src/components/common/BNInput.tsx b/src/components/common/BNInput.tsx index 4554c396..ab65310c 100644 --- a/src/components/common/BNInput.tsx +++ b/src/components/common/BNInput.tsx @@ -66,7 +66,7 @@ export function BNInput({ if (value) { const valueAsString = bigIntToString(value, denomination); - const oldValue = stringToBigint(valStr, denomination); + const oldValue = stringToBigint(valStr || '0', denomination); /** * When deleting zeros after decimal, all zeros delete without this check. * This also preserves zeros in the input ui.