Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
urchinpro committed Sep 11, 2023
1 parent 30fc26b commit c343af0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l2-frontend/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ export const convertSubjectNameToTitle = (object: any, subjectName: string | nul
console.log(obj);
// eslint-disable-next-line no-console
console.log(subjectName);
return `${obj.SN} ${obj.G} ${obj.SNILS} ${obj.T ? obj.T : ''}`;
return [obj.SN, obj.G, obj.SNILS, `${obj.T ? obj.T : ''}`].filter(Boolean).join(' ');
};

export const validateEmail = (email: string) => Boolean(
Expand Down

0 comments on commit c343af0

Please sign in to comment.