diff --git a/lib/ui/sync_indicator.dart b/lib/ui/sync_indicator.dart index 732173c73620ca123efc7928c5eeac27eff70ab0..b50a5aa277a5b5c2060ad12be8ab4a5f3c6d1c82 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();