diff --git a/Frontend/Services/ProfileStateService.cs b/Frontend/Services/ProfileStateService.cs index b89a81753cf977e90b458980a1ef219d66437daa..2f81da3ba3a2c86499d5bec4a38ede16a619b246 100644 --- a/Frontend/Services/ProfileStateService.cs +++ b/Frontend/Services/ProfileStateService.cs @@ -17,8 +17,12 @@ public class ProfileStateService public async Task<ProfileInfo?> GetProfileInfo() { if (_profileInfo != null) return _profileInfo; - var profileFromApi = await _profileClient.GetProfileForUserAsync(); - _profileInfo = new ProfileInfo {ProfileDetails = profileFromApi.Data}; + try + { + var profileFromApi = await _profileClient.GetProfileForUserAsync(); + _profileInfo = new ProfileInfo {ProfileDetails = profileFromApi.Data}; + } + catch (Exception) { } return _profileInfo; }