chore: Follow up user bottom sheet

This commit is contained in:
krille-chan 2023-08-11 07:56:12 +02:00
parent 924e4bce23
commit 010ae8fb09
No known key found for this signature in database

View file

@ -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(