diff --git a/lib/ui/sync_indicator.dart b/lib/ui/sync_indicator.dart index 732173c73..b50a5aa27 100644 --- a/lib/ui/sync_indicator.dart +++ b/lib/ui/sync_indicator.dart @@ -52,7 +52,9 @@ class _SyncIndicatorState extends State { } else { _containerHeight = 48; } - if (_event.status != SyncStatus.error) { + if (_event.status == SyncStatus.error) { + return _getErrorWidget(); + } else { var icon; if (_event.status == SyncStatus.completed) { icon = Icon( @@ -96,8 +98,6 @@ class _SyncIndicatorState extends State { ), ), ); - } else { - return _getErrorWidget(); } } return Container();