From 4145ed3cc8c2ea63e7a40416c5be32f81b3ba84f Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Fri, 14 Feb 2020 22:35:24 +0000 Subject: [PATCH] Hide student count denominator if zero --- webclient/src/Classes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webclient/src/Classes.js b/webclient/src/Classes.js index 7bd527f..a7c624e 100644 --- a/webclient/src/Classes.js +++ b/webclient/src/Classes.js @@ -37,7 +37,7 @@ function ClassTable(props) { {x.is_cancelled ? 'Cancelled' : moment.utc(x.datetime).local().format('LT')} {x.instructor_name} {x.cost === '0.00' ? 'Free' : '$'+x.cost} - {x.student_count} {x.max_students && '/ '+x.max_students} + {x.student_count} {!!x.max_students && '/ '+x.max_students} ) : @@ -174,7 +174,7 @@ export function ClassDetail(props) { Students: - {clazz.student_count} {clazz.max_students && '/ '+clazz.max_students} + {clazz.student_count} {!!clazz.max_students && '/ '+clazz.max_students}