protected override async Task OnInitializedAsync() { try { _challengesResult = await ChallengeService.GetAllChallengesAsync(EventId); if (_challengesResult != null) { await JSRuntime.InvokeVoidAsync("ClockFunctions.startTime", "timerDiv", _challengesResult.Event.EndDateTime); } _currentChallenge = _challengesResult.Challenges.FirstOrDefault(); } catch (AccessTokenNotAvailableException exception) { exception.Redirect(); } }