From c8e5d481ed7b50cd85013fc50a17a946f71267b5 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Sat, 27 Jun 2026 07:37:48 -0500 Subject: [PATCH] fix: handle null city for phone-registered users in dashboard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit user.city is null for users registered via OTP — null assertion caused crash showing grey DashboardLayout background. Co-Authored-By: Claude Sonnet 4.6 --- lib/ui/views/dashboard_view.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ui/views/dashboard_view.dart b/lib/ui/views/dashboard_view.dart index 85eab13..4d95fea 100644 --- a/lib/ui/views/dashboard_view.dart +++ b/lib/ui/views/dashboard_view.dart @@ -117,7 +117,7 @@ class _DashboardViewState extends State { ); } - final _coords = citiesProvider.getCoordsOfCity(user!.city!); + final _coords = citiesProvider.getCoordsOfCity(user!.city ?? ''); _createService() async { print('debug ${selectedProfessional?.user.id ?? 'user.id'}');