File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Presentation/Sources/Home/ViewModel Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ extension RecommendedRoutineDTO {
3030 var routineCategory : RoutineCategoryType ?
3131 if let category {
3232 routineCategory = RoutineCategoryType ( rawValue: category)
33+ if routineCategory == . outdoorReport {
34+ routineCategory = . outdoor
35+ }
3336 }
3437
3538 var type : RoutineCategoryType ?
Original file line number Diff line number Diff line change @@ -276,14 +276,14 @@ final class HomeViewModel: ViewModel {
276276
277277 private func checkVersion( ) {
278278 let currentVersion = Bundle . main. infoDictionary ? [ " CFBundleShortVersionString " ] as? String
279- let major = currentVersion? . split ( separator : " . " ) . first
279+ let majorVersion = Int ( currentVersion? . components ( separatedBy : " . " ) . first ?? " 0 " ) ?? 0
280280
281281 Task {
282282 do {
283283 let appStoreAppVersion = try await appConfigRepository. fetchAppVersion ( )
284- let appStoreMajor = appStoreAppVersion? . split ( separator : " . " ) . first
284+ let appStoreMajor = Int ( appStoreAppVersion? . components ( separatedBy : " . " ) . first ?? " 0 " ) ?? 0
285285
286- if major != appStoreMajor {
286+ if majorVersion < appStoreMajor {
287287 let url = URL ( string: " itms-apps://itunes.apple.com/app/id6749437799 " )
288288 updateVersionSubject. send ( url)
289289 } else {
You can’t perform that action at this time.
0 commit comments