We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2970d52 commit d6c3398Copy full SHA for d6c3398
src/components/common/BNInput.tsx
@@ -66,7 +66,7 @@ export function BNInput({
66
67
if (value) {
68
const valueAsString = bigIntToString(value, denomination);
69
- const oldValue = stringToBigint(valStr, denomination);
+ const oldValue = stringToBigint(valStr || '0', denomination);
70
/**
71
* When deleting zeros after decimal, all zeros delete without this check.
72
* This also preserves zeros in the input ui.
0 commit comments