diff --git a/packages/loot-design/src/components/modals/EditField.js b/packages/loot-design/src/components/modals/EditField.js index 6cc252305c7c12de71bffdd1a0e0b1dffea8e483..606ee6e7d01bb7966075e67f88a12600b4c39fc0 100644 --- a/packages/loot-design/src/components/modals/EditField.js +++ b/packages/loot-design/src/components/modals/EditField.js @@ -28,12 +28,14 @@ function EditField({ createPayee, }) { function onSelect(value) { - // Process the value if needed - if (name === 'amount') { - value = amountToInteger(value); - } + if (value != null) { + // Process the value if needed + if (name === 'amount') { + value = amountToInteger(value); + } - onSubmit(name, value); + onSubmit(name, value); + } modalProps.onClose(); }