Skip to content

Commit

Permalink
Checked string is empty or not
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-nirali-s committed Nov 28, 2024
1 parent 41baafd commit f2bf9a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit f2bf9a5

Please sign in to comment.