fix helpers: removeSymbols should convert argument to string to avoid undefined is not a function errors

This commit is contained in:
Mahdi Dibaiee 2015-04-21 16:59:09 +04:30
parent 433c2fb339
commit 0970f7eb2b

View File

@ -74,5 +74,5 @@ export const flatten = (arr) => {
}; };
export const removeSymbols = string => { export const removeSymbols = string => {
return string.replace(/\W/g, ''); return string.toString().replace(/\W/g, '');
}; };