mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
refactor
This commit is contained in:
@@ -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 ? '...' : '') : ''
|
||||
|
||||
Reference in New Issue
Block a user