Skip to content

Commit

Permalink
fix(core): fixed "undefined" in checkPlayerJoin when perm banned (closes
Browse files Browse the repository at this point in the history
  • Loading branch information
tabarra committed Nov 26, 2022
1 parent a307928 commit d52ef92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/webroutes/player/checkJoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ function checkBan(validIdsArray: string[]): AllowRespType | DenyRespType {
};
const language = translator.t('$meta.humanizer_language');

let title, expLine;
let title;
let expLine = '';
if (ban.expiration) {
const humanizeOptions = {
language,
Expand Down

0 comments on commit d52ef92

Please sign in to comment.