From 010ae8fb097cf3604b58f7695a404e579befca55 Mon Sep 17 00:00:00 2001 From: krille-chan Date: Fri, 11 Aug 2023 07:56:12 +0200 Subject: [PATCH] chore: Follow up user bottom sheet --- lib/pages/user_bottom_sheet/user_bottom_sheet.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pages/user_bottom_sheet/user_bottom_sheet.dart b/lib/pages/user_bottom_sheet/user_bottom_sheet.dart index 270681086..da316d651 100644 --- a/lib/pages/user_bottom_sheet/user_bottom_sheet.dart +++ b/lib/pages/user_bottom_sheet/user_bottom_sheet.dart @@ -39,7 +39,8 @@ class LoadProfileBottomSheet extends StatelessWidget { .getUserProfile(userId) .timeout(const Duration(seconds: 3)), builder: (context, snapshot) { - if (snapshot.connectionState != ConnectionState.done) { + if (snapshot.connectionState != ConnectionState.done && + snapshot.data != null) { return Scaffold( appBar: AppBar( leading: CloseButton(