Skip to content

Commit

Permalink
fix: shortenText now uses ma argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
KararTY committed Apr 20, 2022
1 parent 08af7dc commit 3a6a25f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Handlers/BioHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ export default class BioHandler extends DefaultHandler {
}

public static shortenText (str: string, max = 32): string {
return str.length > 32 ? `${str.substring(0, max)}...` : str
return str.length > max ? `${str.substring(0, max)}...` : str
}
}

0 comments on commit 3a6a25f

Please sign in to comment.