chore: Follow up user bottom sheet

pull/485/head
krille-chan 2 years ago
parent 924e4bce23
commit 010ae8fb09
No known key found for this signature in database

@ -39,7 +39,8 @@ class LoadProfileBottomSheet extends StatelessWidget {
.getUserProfile(userId) .getUserProfile(userId)
.timeout(const Duration(seconds: 3)), .timeout(const Duration(seconds: 3)),
builder: (context, snapshot) { builder: (context, snapshot) {
if (snapshot.connectionState != ConnectionState.done) { if (snapshot.connectionState != ConnectionState.done &&
snapshot.data != null) {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
leading: CloseButton( leading: CloseButton(

Loading…
Cancel
Save