fix(input-iban): formatter should handle undefined modelValues
This commit is contained in:
parent
3217c1a739
commit
af1535b2f5
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ import { friendlyFormatIBAN } from '@bundled-es-modules/ibantools';
|
|||
*/
|
||||
export function formatIBAN(modelValue) {
|
||||
// defensive code because of ibantools
|
||||
if (modelValue === '') {
|
||||
if (!modelValue) {
|
||||
return '';
|
||||
}
|
||||
return friendlyFormatIBAN(modelValue);
|
||||
|
|
|
|||
Loading…
Reference in a new issue