Skip to content

Commit

Permalink
홈 루틴 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ghkdemrdus committed Nov 20, 2024
1 parent 7d878c9 commit 34ad957
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion App/Moda/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<key>CFBundleShortVersionString</key>
<string>1.4.0</string>
<key>CFBundleVersion</key>
<string>1.4.0.0</string>
<string>1.4.0.1</string>
<key>GoogleServiceFileName</key>
<string>$(ENV_GOOGLE_INFO_PLIST)</string>
<key>ITSAppUsesNonExemptEncryption</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ struct HomeRoutineCore: Reducer {
// HomeRoutine에 Id가 존재하면 Month는 Done이기 때문에
let done = homeRoutines.map(\.id)
let monthsNotDone = months.filter { !done.contains($0.id) }
let weekdaysNotDone = weekdays.filter { !$0.duration.isContain(weekday: Weekday.allCases[currentDateIdx]) }
let weekdaysNotDone = weekdays.filter { !$0.duration.isContain(weekday: Weekday.allCases[currentDateIdx]) && !done.contains($0.id) }
return monthsNotDone + weekdaysNotDone
}

Expand Down Expand Up @@ -199,7 +199,7 @@ struct HomeRoutineCore: Reducer {
return nil
}

if !$0.duration.isContain(weekday: Weekday.allCases[currentDateIdx]) && !isDone {
if $0.duration.isWeekday && !$0.duration.isContain(weekday: Weekday.allCases[currentDateIdx]) && !isDone {
return nil
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct RoutineGroupView: View {

var body: some View {
VStack(spacing: 0) {
HStack(spacing: 4) {
HStack(spacing: 8) {
routine.emoji.image
.resizable()
.frame(size: 24)
Expand Down
2 changes: 1 addition & 1 deletion App/ModaWidget/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundleShortVersionString</key>
<string>1.4.0</string>
<key>CFBundleVersion</key>
<string>1.4.0.0</string>
<string>1.4.0.1</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionPointIdentifier</key>
Expand Down

0 comments on commit 34ad957

Please sign in to comment.