diff --git a/packages/loot-design/src/components/modals/EditField.js b/packages/loot-design/src/components/modals/EditField.js index 6cc252305c..606ee6e7d0 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(); }