Skip to content

Commit

Permalink
Fixed /courseinfo when class size is unlisted
Browse files Browse the repository at this point in the history
This commit fixes a glitch that prevented the `/courseinfo` command from working when the average class size was not returned by the FireRoad API.
  • Loading branch information
ZelnickB committed Jan 8, 2025
1 parent 428cc28 commit cb879e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discordBot/commands/common/courses/embedBuilders.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function courseInformation (information) {
},
{
name: 'Average Class Size',
value: information.enrollment_number.toString(),
value: 'enrollment_number' in information ? information.enrollment_number.toString() : '*Information not available.*',
inline: true
},
{
Expand Down

0 comments on commit cb879e8

Please sign in to comment.