[frontend] Host in UserInfo can be null
This commit is contained in:
parent
8b7f2dba05
commit
92ee62caf2
1 changed files with 2 additions and 2 deletions
|
@ -13,12 +13,12 @@
|
|||
[Parameter][EditorRequired] public required string? DisplayName { get; set; }
|
||||
[Parameter][EditorRequired] public required string Username { get; set; }
|
||||
[Parameter][EditorRequired] public required bool Indented { get; set; }
|
||||
[Parameter][EditorRequired] public required string Host { get; set; }
|
||||
[Parameter][EditorRequired] public required string? Host { get; set; }
|
||||
|
||||
private void OpenProfile()
|
||||
{
|
||||
string path = $"@{Username}";
|
||||
if (Host.Length > 0)
|
||||
if (Host?.Length > 0)
|
||||
{
|
||||
path += $"@{Host}";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue