From 0ed69e36e759487db16425c17badc0860df22a4e Mon Sep 17 00:00:00 2001
From: Tanner Collin
Date: Thu, 12 May 2022 06:15:49 +0000
Subject: [PATCH] Allow manually-added students to still pay
---
webclient/src/Classes.js | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/webclient/src/Classes.js b/webclient/src/Classes.js
index 3a8ef80..97dde37 100644
--- a/webclient/src/Classes.js
+++ b/webclient/src/Classes.js
@@ -609,9 +609,13 @@ export function ClassDetail(props) {
}
- {userTraining.attendance_status === 'Waiting for payment' &&
+ {clazz.cost != '0.00' && !userTraining.paid_date && userTraining.attendance_status !== 'Withdrawn' &&
-
Please pay the course fee of ${clazz.cost} to confirm your attendance.
+ {userTraining.attendance_status === 'Waiting for payment' ?
+
Please pay the course fee of ${clazz.cost} to confirm your attendance:
+ :
+
In case you haven't paid the course fee of ${clazz.cost} yet, you can do that here:
+ }