fix(input-iban): formatter should handle undefined modelValues

This commit is contained in:
Joren Broekema 2019-08-14 13:52:07 +02:00 committed by Thijs Louisse
parent 3217c1a739
commit af1535b2f5

View file

@ -8,7 +8,7 @@ import { friendlyFormatIBAN } from '@bundled-es-modules/ibantools';
*/ */
export function formatIBAN(modelValue) { export function formatIBAN(modelValue) {
// defensive code because of ibantools // defensive code because of ibantools
if (modelValue === '') { if (!modelValue) {
return ''; return '';
} }
return friendlyFormatIBAN(modelValue); return friendlyFormatIBAN(modelValue);