fix: handle null city for phone-registered users in dashboard

user.city is null for users registered via OTP — null assertion caused
crash showing grey DashboardLayout background.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-06-27 07:37:48 -05:00
co-authored by Claude Sonnet 4.6
parent f60e268375
commit c8e5d481ed
+1 -1
View File
@@ -117,7 +117,7 @@ class _DashboardViewState extends State<DashboardView> {
);
}
final _coords = citiesProvider.getCoordsOfCity(user!.city!);
final _coords = citiesProvider.getCoordsOfCity(user!.city ?? '');
_createService() async {
print('debug ${selectedProfessional?.user.id ?? 'user.id'}');