From a19894369bc759c31cde45493f1c41548c0e55d8 Mon Sep 17 00:00:00 2001 From: Furkan Sahin Date: Sat, 30 Jul 2022 17:21:29 -0500 Subject: parsing labs for faculty information, begin displaying lab's faculuty information (in Labs page for example) --- src/models/PeerTeacher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/models/PeerTeacher.ts') diff --git a/src/models/PeerTeacher.ts b/src/models/PeerTeacher.ts index 5f9cf3c..c19fbd2 100644 --- a/src/models/PeerTeacher.ts +++ b/src/models/PeerTeacher.ts @@ -95,7 +95,7 @@ export default class PeerTeacher { let total_hours = 0; this.labs.forEach((lab_id) => { - total_hours += all_labs.get(lab_id)!.pay_hours; + total_hours += all_labs.get(lab_id)?.pay_hours; }) return total_hours; -- cgit v1.2.3