diff --git a/AgileWorks/AgileWorks/Profile/View/ProfileTableViewController.swift b/AgileWorks/AgileWorks/Profile/View/ProfileTableViewController.swift index 7f021394fd5aba309b348894cd1239a818b13e7d..ed8019b080d867b17ad8b36bbd636b881d0590f6 100644 --- a/AgileWorks/AgileWorks/Profile/View/ProfileTableViewController.swift +++ b/AgileWorks/AgileWorks/Profile/View/ProfileTableViewController.swift @@ -105,7 +105,7 @@ class ProfileTableViewController: UITableViewController { title = unit.name case UnitType.role.rawValue: subject = localizadString(key: "RoleNameTitle", comment: "") - title = unit.sectionRoleName + title = unit.sectionRoleName ?? "" default: break } diff --git a/AgileWorks/Common/Entity/SessionInfo.swift b/AgileWorks/Common/Entity/SessionInfo.swift index 75da98530c587d20dd09e481887144f4f8d22dca..e893984505be34b925966bcf704dacbe99292dba 100644 --- a/AgileWorks/Common/Entity/SessionInfo.swift +++ b/AgileWorks/Common/Entity/SessionInfo.swift @@ -18,8 +18,8 @@ struct Unit: Codable { let code: String let name: String let mainUnit: Bool - let sectionRoleCode: String - let sectionRoleName: String + let sectionRoleCode: String? + let sectionRoleName: String? } struct Role: Codable {