Company Name is now displayed on the Settings table, if available

This commit is contained in:
Joao Ramos
2023-12-27 21:06:06 +00:00
parent 79b159f948
commit b7ddee1db2
2 changed files with 36 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
import {Type} from "@/interfaces/user";
import {Type, User, CorporateUser} from "@/interfaces/user";
export const USER_TYPE_LABELS: {[key in Type]: string} = {
student: "Student",
@@ -8,3 +8,7 @@ export const USER_TYPE_LABELS: {[key in Type]: string} = {
admin: "Admin",
developer: "Developer",
};
export function isCorporateUser(user: User): user is CorporateUser {
return (user as CorporateUser).corporateInformation !== undefined;
}