Fix possible crash

This commit is contained in:
Arkadiusz Fal 2024-02-02 10:08:04 +01:00
parent 5b35c03bc5
commit 55f4a4a2a1

View File

@ -100,7 +100,7 @@ struct CommentView: View {
} }
private var authorAvatar: some View { private var authorAvatar: some View {
WebImage(url: URL(string: comment.authorAvatarURL)!, options: [.lowPriority]) WebImage(url: URL(string: comment.authorAvatarURL), options: [.lowPriority])
.resizable() .resizable()
.placeholder { .placeholder {
Rectangle().fill(Color("PlaceholderColor")) Rectangle().fill(Color("PlaceholderColor"))