Skip to content

Commit

Permalink
fix: redundant empty brackets under game download card
Browse files Browse the repository at this point in the history
  • Loading branch information
vapidinfinity committed Nov 9, 2024
1 parent dcf25de commit ed6f2c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Mythic/Views/Unified/Modules/DownloadCard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ struct DownloadCard: View {
}
}

if operation.current?.game == game, let optionalPacks = operation.current?.optionalPacks {
if operation.current?.game == game,
let optionalPacks = operation.current?.optionalPacks,
!optionalPacks.isEmpty {
Text("(\(optionalPacks.joined(separator: ", ")))")
.font(.footnote)
.foregroundStyle(.placeholder)
Expand Down

0 comments on commit ed6f2c4

Please sign in to comment.