Skip to content

Commit 1384d81

Browse files
authored
Feat: '나가봐요_제보하기' 카테고리 추천 루틴에 추가
1 parent 0103cc5 commit 1384d81

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Projects/DataSource/Sources/DTO/RecommendedRoutineDTO.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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?

Projects/Presentation/Sources/Home/ViewModel/HomeViewModel.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)