mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Merge pull request #408 from R0m1k3/1.1
Fix error when setting monetary amount to zero or undefined
This commit is contained in:
2 files changed
+2
-1
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 193 KiB |
@@ -1362,7 +1362,8 @@ export default function Avoirs() {
|
||||
step="0.01"
|
||||
placeholder="Montant en euros (optionnel)"
|
||||
{...field}
|
||||
value={field.value || ""}
|
||||
value={field.value ?? ""}
|
||||
onChange={(e) => field.onChange(e.target.value ? parseFloat(e.target.value) : undefined)}
|
||||
/>
|
||||
</FormControl>
|
||||
<FormMessage />
|
||||
|
||||
Reference in new issue
Block a user