Skip to content

Commit 432a715

Browse files
committed
fix typo
1 parent 1ee0d50 commit 432a715

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/30-classes/80-abstract-classes/ru/EXERCISE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ console.log(clock24.render()); // => '00 : 00'
2727
// 12-часовой формат
2828
class Clock12 extends Clock {
2929
render(): string {
30-
const timeType = this.hours > 12 ? 'PM' : 'AM';
30+
const timeType = this.hours >= 12 ? 'PM' : 'AM';
3131

3232
let currentHour = this.hours > 12 ? this.hours - 12 : this.hours;
3333
if (timeType === 'AM' && this.hours === 0) {

modules/30-classes/80-abstract-classes/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Clock from './index';
44
test('GameObject', () => {
55
class Clock12 extends Clock {
66
render(): string {
7-
const timeType = this.hours > 12 ? 'PM' : 'AM';
7+
const timeType = this.hours >= 12 ? 'PM' : 'AM';
88

99
let currentHour = this.hours > 12 ? this.hours - 12 : this.hours;
1010
if (timeType === 'AM' && this.hours === 0) {

0 commit comments

Comments
 (0)