fix crash if locale is undefined

This commit is contained in:
Barış Soner Uşaklı
2017-05-04 13:52:12 -04:00
parent 6f8e7343e6
commit 986e52897d

View File

@@ -177,7 +177,7 @@
};
helpers.localeToHTML = function (locale) {
return locale.replace('_', '-');
return locale ? locale.replace('_', '-') : '';
};
helpers.renderTopicImage = function (topicObj) {