diff --git a/example/src/screens/menu.js b/example/src/screens/menu.js index a5fc1fe7b0..9069c70406 100644 --- a/example/src/screens/menu.js +++ b/example/src/screens/menu.js @@ -65,7 +65,7 @@ export default class MenuScreen extends Component { options: { topBar: { title: { - text: screen + text: props?.weekView ? 'WeekCalendar' : screen }, backButton: { accessibilityLabel: 'back', diff --git a/src/calendar/day/marking/index.tsx b/src/calendar/day/marking/index.tsx index afb55eebfb..fdfafa615b 100644 --- a/src/calendar/day/marking/index.tsx +++ b/src/calendar/day/marking/index.tsx @@ -91,7 +91,7 @@ export default class Marking extends Component { if (items && Array.isArray(items) && items.length > 0) { // Filter out items so that we process only those which have color property - const validItems = _.filter(items, function(o: DOT | PERIOD) { return !o.color; }); + const validItems = _.filter(items, function(o: DOT | PERIOD) { return o.color; }); return validItems.map((item, index) => { return type === MarkingTypes.MULTI_DOT ? this.renderDot(index, item) : this.renderPeriod(index, item);