Skip to content

Commit af1535b

Browse files
Joren Broekematlouisse
authored andcommitted
fix(input-iban): formatter should handle undefined modelValues
1 parent 3217c1a commit af1535b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/input-iban/src/formatters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { friendlyFormatIBAN } from '@bundled-es-modules/ibantools';
88
*/
99
export function formatIBAN(modelValue) {
1010
// defensive code because of ibantools
11-
if (modelValue === '') {
11+
if (!modelValue) {
1212
return '';
1313
}
1414
return friendlyFormatIBAN(modelValue);

0 commit comments

Comments
 (0)