diff --git a/Frontend/patient_manager/lib/pages/home.dart b/Frontend/patient_manager/lib/pages/home.dart index 8e21a7c7..0a6aeb3a 100644 --- a/Frontend/patient_manager/lib/pages/home.dart +++ b/Frontend/patient_manager/lib/pages/home.dart @@ -85,14 +85,14 @@ class _HomeState extends State { if (snapshot.hasData) { return HomeTileGrid( signedInUser: snapshot.data![0] as AppUser, - businessUser: snapshot.data![1] as BusinessUser, - business: snapshot.data![2] as Business, + businessUser: snapshot.data![1] as BusinessUser?, + business: snapshot.data![2] as Business?, ); } else { return Center( child: Text( '${snapshot.error} occurred', - style: TextStyle(fontSize: 18), + style: const TextStyle(fontSize: 18), ), ); }