fix helpers: removeSymbols should convert argument to string to avoid undefined is not a function
errors
This commit is contained in:
parent
433c2fb339
commit
0970f7eb2b
@ -74,5 +74,5 @@ export const flatten = (arr) => {
|
||||
};
|
||||
|
||||
export const removeSymbols = string => {
|
||||
return string.replace(/\W/g, '');
|
||||
return string.toString().replace(/\W/g, '');
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user