Allow clearing and replacing auction bids
This commit is contained in:
1 parent
c5661ec255
commit
f9668a577e
4 files changed
+47
-19
No files matched your search
@@ -0,0 +1,6 @@
|
||||
// A blank edit is not a zero. Keep input text separate from submitted numbers.
|
||||
export function integerInputValue(text: string): number {
|
||||
if (text.trim() === '') return Number.NaN;
|
||||
const value = Number(text);
|
||||
return Number.isSafeInteger(value) ? value : Number.NaN;
|
||||
}
|
||||
Reference in new issue
Block a user