Skip to content

Commit

Permalink
Merge pull request #48 from Li357/3.0.1-b7-ui-20-21-fixes
Browse files Browse the repository at this point in the history
Fix Wednesday UI that mistaken starts on mod 2
  • Loading branch information
Li357 authored Jul 27, 2020
2 parents 1c1bb7d + 891ba73 commit 3b7ff07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/app/src/components/schedule/ScheduleCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@ const makeCardDayScheduleSelector = () => createSelector(
const isFinals = scheduleType === 'FINALS';

const revisedUserDaySchedule = injectAssemblyOrFinalsIfNeeded(schedule, scheduleType, day);
// Remove homeroom/no homeroom item on wednesday schedules
const userDaySchedule = revisedUserDaySchedule.slice(scheduleType === 'WEDNESDAY' ? 1 : 0);
// PATCH: scheduleType === 'WEDNESDAY' && day !== 3 condition is needed since the first item is already
// sliced off for normal Wednesday schedules (i.e. day === 3, see interpolateOpenMods)
const userDaySchedule = revisedUserDaySchedule.slice(scheduleType === 'WEDNESDAY' && day !== 3 ? 1 : 0);

const cardDaySchedule = daySchedule.map(([start, end, modNumber]) => {
const startTime = formatTime(start);
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/utils/bugsnag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function serializeState(state: AppState): IMetadata {
}

const config = new Configuration();
config.codeBundleId = '3.0.1-b6';
config.codeBundleId = '3.0.1-b7';
config.notifyReleaseStages = ['production'];
config.registerBeforeSendCallback((report) => {
const state = store.getState();
Expand Down

0 comments on commit 3b7ff07

Please sign in to comment.