diff --git a/src/runtime/js/ts.ui/core/core-gui@tradeshift.com/spirits/images/ts.ui.ImageSpirit.js b/src/runtime/js/ts.ui/core/core-gui@tradeshift.com/spirits/images/ts.ui.ImageSpirit.js index 94444186e..93de7bfd8 100644 --- a/src/runtime/js/ts.ui/core/core-gui@tradeshift.com/spirits/images/ts.ui.ImageSpirit.js +++ b/src/runtime/js/ts.ui/core/core-gui@tradeshift.com/spirits/images/ts.ui.ImageSpirit.js @@ -78,7 +78,7 @@ ts.ui.ImageSpirit = (function using(fontcss, UNIT_DOUBLE) { if (regExp.test(name)) { return regExp.exec(name)[1].toUpperCase(); } - var names = name.split(/\s+/); + var names = name.toString().split(/\s+/); var first = names.shift(); var last = names.pop() || ''; return (first[0] + (last[0] || '')).toUpperCase();