diff --git a/Presentation/HushianWebApp/Pages/FromUserSide/AIChat.razor b/Presentation/HushianWebApp/Pages/FromUserSide/AIChat.razor index 8eeab96..c19852f 100644 --- a/Presentation/HushianWebApp/Pages/FromUserSide/AIChat.razor +++ b/Presentation/HushianWebApp/Pages/FromUserSide/AIChat.razor @@ -13,7 +13,15 @@ @using Microsoft.AspNetCore.Components.Web @inject CompanyService companyService @inject ToastService toastService -گفتگو با دستیار هوشمند @CompanyInfo.FullName +@if (CompanyInfo == null) +{ + دستیار هوشمند + +} +else +{ + گفتگو با دستیار هوشمند @CompanyInfo.FullName +}
@if (isReady) @@ -108,7 +116,7 @@ await LoadMessages(); isReady = true; } - else + else { isError = true; msgError = "دستیار هوشمند یافت نشد";