Skip to content

Commit

Permalink
return discipline name if short code not found
Browse files Browse the repository at this point in the history
  • Loading branch information
nimarion committed Jan 16, 2024
1 parent d04dec4 commit d473424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/discipline.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ export default function mapDisciplineToCode(discipline: string): string {
}
return disciplineItem.disciplineCode;
}
throw new Error(`Discipline ${discipline} not found`);
return discipline;
}

0 comments on commit d473424

Please sign in to comment.