diff --git a/moneymgr_mobile/lib/routes/scans_list/scans_list_screen.dart b/moneymgr_mobile/lib/routes/scans_list/scans_list_screen.dart index 9185ca3..8c9dfb8 100644 --- a/moneymgr_mobile/lib/routes/scans_list/scans_list_screen.dart +++ b/moneymgr_mobile/lib/routes/scans_list/scans_list_screen.dart @@ -48,6 +48,12 @@ class _ExpensesList extends StatelessWidget { @override Widget build(BuildContext context) { + if (list.isEmpty) { + return const Center( + child: Text("There is no entry waiting for upload (yet)"), + ); + } + return ListView.builder( itemBuilder: (context, entryNum) { final expense = list[entryNum]; diff --git a/moneymgr_mobile/lib/widgets/synchronize_button.dart b/moneymgr_mobile/lib/widgets/synchronize_button.dart index 7a57626..8a8f5cd 100644 --- a/moneymgr_mobile/lib/widgets/synchronize_button.dart +++ b/moneymgr_mobile/lib/widgets/synchronize_button.dart @@ -40,9 +40,9 @@ Future _performSynchronization(Ref ref) async { // Lastly delete the local expense ref.watch(expensesProvider).requireValue.deleteExpense(exp); - - ref.invalidate(expensesProvider); } + + ref.invalidate(expensesProvider); } class SynchronizeButton extends HookConsumerWidget {