Allow clearing and replacing auction bids

This commit is contained in:
Quintine committed 2026-09-21 19:47:06 +10:00
1 parent c5661ec255
commit f9668a577e
4 files changed
+47 -19

No files matched your search

+6
View File
@@ -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;
}