From bd9ef25cd5a58ed2632222ea77c07d5ba3ea48ce Mon Sep 17 00:00:00 2001 From: Stoyan Zlatev Date: Wed, 13 Sep 2023 09:58:01 +0200 Subject: [PATCH] Genesis tool box shows 'Options' when username is null or white space --- Common/Ui/GenesisToolBox/Infrastructure/Software.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Common/Ui/GenesisToolBox/Infrastructure/Software.cs b/Common/Ui/GenesisToolBox/Infrastructure/Software.cs index 672eb953..0d00e312 100644 --- a/Common/Ui/GenesisToolBox/Infrastructure/Software.cs +++ b/Common/Ui/GenesisToolBox/Infrastructure/Software.cs @@ -59,6 +59,11 @@ { UserName = $"{model.FirstName} {model.LastName}"; } + + if (string.IsNullOrWhiteSpace(UserName)) + { + UserName = "Options"; + } } /// @@ -99,6 +104,11 @@ } } + if (string.IsNullOrWhiteSpace(UserName)) + { + UserName = "Options"; + } + return HasUser; }