diff --git a/AutoCat.xcodeproj/project.pbxproj b/AutoCat.xcodeproj/project.pbxproj index 595cbb9..ebd8d74 100644 --- a/AutoCat.xcodeproj/project.pbxproj +++ b/AutoCat.xcodeproj/project.pbxproj @@ -1745,7 +1745,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 145; + CURRENT_PROJECT_VERSION = 146; DEVELOPMENT_TEAM = 46DTTB8X4S; INFOPLIST_FILE = AutoCat/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = AutoCat; @@ -1772,7 +1772,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 145; + CURRENT_PROJECT_VERSION = 146; DEVELOPMENT_TEAM = 46DTTB8X4S; INFOPLIST_FILE = AutoCat/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = AutoCat; diff --git a/AutoCat/Screens/ReportScreen/ReportScreen.swift b/AutoCat/Screens/ReportScreen/ReportScreen.swift index 53aa047..90aa8b7 100644 --- a/AutoCat/Screens/ReportScreen/ReportScreen.swift +++ b/AutoCat/Screens/ReportScreen/ReportScreen.swift @@ -53,8 +53,7 @@ struct ReportScreen: View { Section("History") { LabeledContent("Events", value: String(viewModel.vehicle.events.count)) - .navigationLink(isActive: !viewModel.vehicle.events.isEmpty, - onTap: viewModel.openEvents) + .navigationLink(onTap: viewModel.openEvents) LabeledContent("OSAGO", value: String(viewModel.vehicle.osagoContracts.count)) .navigationLink(isActive: !viewModel.vehicle.osagoContracts.isEmpty, onTap: viewModel.openOsago) @@ -68,8 +67,7 @@ struct ReportScreen: View { .navigationLink(isActive: !viewModel.vehicle.ads.isEmpty, onTap: viewModel.openAds) LabeledContent("Notes", value: String(viewModel.vehicle.notes.count)) - .navigationLink(isActive: !viewModel.vehicle.notes.isEmpty, - onTap: viewModel.openNotes) + .navigationLink(onTap: viewModel.openNotes) } if viewModel.showDebugInfo {