Skip to content

Commit

Permalink
lmb-858: also show a warning for not having the minimum
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasVanHoof committed Dec 10, 2024
1 parent 3b3435f commit 02b3df6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ export default class VerkiezingenWarningAmountMandatarissenForOrgaanAlertCompone
let message = null;
let messagePositionInArray = null;
if (totalForMandaat > value.max) {
message = `${totalForMandaat} van maximum ${value.max} mandataris(sen) gevonden voor mandaat "${value.label}".`;
message = `Teveel mandaten gevonden voor "${value.label}". ${totalForMandaat} van maximum ${value.max}`;
messagePositionInArray = this.warningMessages.length + 1;
}
if (totalForMandaat < value.min) {
message = `Te weinig mandaten gevonden voor "${value.label}". (${totalForMandaat}/${value.min})`;
messagePositionInArray = this.warningMessages.length + 1;
}

Expand Down

0 comments on commit 02b3df6

Please sign in to comment.