feat: Ajout d'un minimum infini
This commit is contained in:
parent
a14621cdbe
commit
eca3b5b98d
|
@ -90,7 +90,7 @@ const results = ref(getResultsFromScore(score));
|
||||||
const result = computed(() =>
|
const result = computed(() =>
|
||||||
displayScoreResult.value
|
displayScoreResult.value
|
||||||
? results.value
|
? results.value
|
||||||
.filter((r) => r.min <= scoreSum.value)
|
.filter((r) => !r.min || r.min <= scoreSum.value)
|
||||||
.filter((r) => !r.max || r.max >= scoreSum.value)[0]
|
.filter((r) => !r.max || r.max >= scoreSum.value)[0]
|
||||||
: null
|
: null
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue