Merge pull request #24 from Byron/repeat-edge-cases
'{0}' label is not shown anymore
This commit is contained in:
@@ -33,6 +33,9 @@ export default {
|
||||
label: {
|
||||
get: function() {
|
||||
if (this.minimum === this.maximum) {
|
||||
if (this.minimum === 0) {
|
||||
return undefined;
|
||||
}
|
||||
return formatTimes(this.minimum - 1);
|
||||
} else if (this.minimum <= 1 && this.maximum >= 2) {
|
||||
return `at most ${formatTimes(this.maximum - 1)}`;
|
||||
|
||||
Reference in New Issue
Block a user