This commit is contained in:
Daniel Shleifman
2021-06-02 22:09:01 +03:00
parent 2ea00f041d
commit c87f8f6101
4 changed files with 12 additions and 36 deletions

View File

@@ -10,4 +10,4 @@ export function getPeerString(torrent) {
}
export const shortenText = (text, sympolAmount) =>
text.slice(0, sympolAmount) + (text.length > sympolAmount ? '...' : '')
text ? text.slice(0, sympolAmount) + (text.length > sympolAmount ? '...' : '') : ''