remove maybeTruncateString

This commit is contained in:
Severiano Badajoz
2020-05-27 13:57:39 -07:00
parent 8c6d806d47
commit 318ca86dec
-12
View File
@@ -1,12 +0,0 @@
const maybeTruncateString = (str, maxLength) => {
let truncatedString = null;
if (str.length > maxLength) {
truncatedString = `${str.slice(0, maxLength / 2)}${str.slice(
-maxLength / 2
)}`;
}
return truncatedString;
};
export default maybeTruncateString;