Skip to content

Commit

Permalink
Log and early return for null-apikey.
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferStrube committed Dec 17, 2024
1 parent 94f8348 commit e300f84
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@
try
{
Authentication a = await e.GetDataAsync<Authentication>();
if (string.IsNullOrWhiteSpace(a.apiKey))
{
Console.WriteLine($"Received api key from parent window which was empty '{a.apiKey}'");
return;
}
StaticDatasetStorage.ApiKey = a.apiKey;
StaticDatasetStorage.ServerUrl = a.serverUrl;
StateHasChanged();
Expand Down

0 comments on commit e300f84

Please sign in to comment.