Skip to content

Commit d1722a8

Browse files
committed
Remove use of non-existing property
1 parent 5111e0b commit d1722a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

htdocs/cahier/cahier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function actualizeActualBookings(_actualBookings) {
125125

126126
const participantCount = div(container);
127127
participantCount.innerHTML = _actualBookings[j].participantCount;
128-
participantCount.title = Cahier.getSingularOrPlural(_actualBookings[j].participantCount);
128+
participantCount.title = Cahier.getSingularOrPlural(_actualBookings[j].participantCount, ' Participant');
129129

130130
div(container).innerHTML = Cahier.getOwner(_actualBookings[j], true);
131131

htdocs/cahier/methods.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const Cahier = {
5757
}
5858
},
5959

60-
getSingularOrPlural: function (nbr = Cahier.nbrParticipants, txt = ' Participant') {
60+
getSingularOrPlural: function (nbr, txt) {
6161
if (nbr == 0) {
6262
return 'Aucun';
6363
} else if (nbr == 1) {

0 commit comments

Comments
 (0)