Skip to content

Commit

Permalink
fix(grade-status): corregimos estado cuando el minimo escala es 0
Browse files Browse the repository at this point in the history
  • Loading branch information
SeGonzalezR committed May 3, 2024
1 parent 086f43e commit 50b158b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grades/gradeStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const gradeStatus = (
/**
* Si la nota viene nula la marcamos como pendiente.
*/
if (!grade && isApproved) {
if (!grade && isApproved && scale.min !== 0) {
return {
id: 0,
name: 'Pendiente',
Expand Down

0 comments on commit 50b158b

Please sign in to comment.