diff --git a/lib/views/profile/pages/d_profile_page.dart b/lib/views/profile/pages/d_profile_page.dart index 99414dd..a43eff8 100644 --- a/lib/views/profile/pages/d_profile_page.dart +++ b/lib/views/profile/pages/d_profile_page.dart @@ -64,6 +64,10 @@ class _DesktopProfilePageState extends State { return Center(child: Text(viewModel.errorMessage!)); } + if (viewModel.companyProfileData == null) { + return Center(child: Text(AppStrings.noData)); + } + return Column( children: [ DesktopNavigationWidget( diff --git a/lib/views/profile/pages/t_profile_page.dart b/lib/views/profile/pages/t_profile_page.dart index b6c66aa..6ef28e5 100644 --- a/lib/views/profile/pages/t_profile_page.dart +++ b/lib/views/profile/pages/t_profile_page.dart @@ -64,6 +64,10 @@ class _TabletProfilePageState extends State { return Center(child: Text(viewModel.errorMessage!)); } + if (viewModel.companyProfileData == null) { + return Center(child: Text(AppStrings.noData)); + } + return SafeArea( child: Scaffold( key: key,