diff --git a/Splito/UI/Home/Expense/Expense Detail/ExpenseDetailsView.swift b/Splito/UI/Home/Expense/Expense Detail/ExpenseDetailsView.swift index 692fa46d7..85209c9b2 100644 --- a/Splito/UI/Home/Expense/Expense Detail/ExpenseDetailsView.swift +++ b/Splito/UI/Home/Expense/Expense Detail/ExpenseDetailsView.swift @@ -92,7 +92,7 @@ struct ExpenseDetailsView: View { } } .navigationDestination(isPresented: $showImageDisplayView) { - if let imageUrl = viewModel.expense?.imageUrl { + if let imageUrl = viewModel.expense?.imageUrl, !imageUrl.isEmpty { AttachmentZoomView(imageUrl: imageUrl) } } diff --git a/Splito/UI/Home/Groups/Group/Group Options/Transactions/Transaction Detail/GroupTransactionDetailView.swift b/Splito/UI/Home/Groups/Group/Group Options/Transactions/Transaction Detail/GroupTransactionDetailView.swift index ff49fdb34..2b20b7456 100644 --- a/Splito/UI/Home/Groups/Group/Group Options/Transactions/Transaction Detail/GroupTransactionDetailView.swift +++ b/Splito/UI/Home/Groups/Group/Group Options/Transactions/Transaction Detail/GroupTransactionDetailView.swift @@ -107,7 +107,7 @@ struct GroupTransactionDetailView: View { } } .navigationDestination(isPresented: $showImageDisplayView) { - if let imageUrl = viewModel.transaction?.imageUrl { + if let imageUrl = viewModel.transaction?.imageUrl, !imageUrl.isEmpty { AttachmentZoomView(imageUrl: imageUrl) } }