diff --git a/src/app/home/home.component.ts b/src/app/home/home.component.ts index 82a5137..7101bb2 100644 --- a/src/app/home/home.component.ts +++ b/src/app/home/home.component.ts @@ -17,19 +17,28 @@ toString(short: boolean = false) { var result = "" if (this.hours > 0) { - result += ` ${this.hours} hours` + result += ` ${this.hours} hour` + if (this.hours > 1) { + result += 's' + } if (short) { return result } } if (this.minutes > 0) { - result += ` ${this.minutes} minutes` + result += ` ${this.minutes} minute` + if (this.minutes > 1) { + result += 's' + } if (short) { return result } } if (this.seconds > 0) { - result += ` ${this.seconds} seconds` + result += ` ${this.seconds} second` + if (this.seconds > 1) { + result += 's' + } if (short) { return result }