Skip to content

Commit

Permalink
Fix filtered notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimillian committed Jun 26, 2024
1 parent 0af3732 commit 9bc9961
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Packages/Models/Sources/Models/NotificationsPolicy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public struct NotificationsPolicy: Codable, Sendable {
public let summary: Summary

public struct Summary: Codable, Sendable {
public let pendingRequestsCount: String
public let pendingNotificationsCount: String
public let pendingRequestsCount: Int
public let pendingNotificationsCount: Int
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ struct NotificationsHeaderFilteredView: View {
let filteredNotifications: NotificationsPolicy.Summary

var body: some View {
if let count = Int(filteredNotifications.pendingNotificationsCount), count > 0 {
if filteredNotifications.pendingNotificationsCount > 0 {
HStack {
Label("notifications.content-filter.requests.title", systemImage: "archivebox")
.foregroundStyle(.secondary)
Spacer()
Text(filteredNotifications.pendingNotificationsCount)
Text("\(filteredNotifications.pendingNotificationsCount)")
.font(.footnote)
.fontWeight(.semibold)
.monospacedDigit()
Expand Down

0 comments on commit 9bc9961

Please sign in to comment.