Fixed err because of the email not being available

This commit is contained in:
kolaente 2019-05-25 08:09:55 +02:00
parent 974c3c1774
commit 2be74c5883
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -90,7 +90,8 @@ class HomePageState extends State<HomePage> with AfterLayoutMixin<HomePage> {
drawer: new Drawer(
child: new Column(children: <Widget>[
new UserAccountsDrawerHeader(
accountEmail: currentUser == null ? null : Text(currentUser.email),
// Removed until we find a way to disable the user email only for some occasions and not everywhere
//accountEmail: currentUser == null ? null : Text(currentUser.email),
accountName: currentUser == null ? null : Text(currentUser.username),
onDetailsPressed: () {
setState(() {