aboutsummaryrefslogtreecommitdiff
path: root/src/components/PeerTeachers
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/PeerTeachers')
-rw-r--r--src/components/PeerTeachers/PeerTeachers.svelte8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/components/PeerTeachers/PeerTeachers.svelte b/src/components/PeerTeachers/PeerTeachers.svelte
index 713af26..7182f2f 100644
--- a/src/components/PeerTeachers/PeerTeachers.svelte
+++ b/src/components/PeerTeachers/PeerTeachers.svelte
@@ -25,7 +25,9 @@
});
}
- const headers = ["", "First", "Last", "UIN", "Email", "Lab Hours", ""];
+ let headers = ["", "First", "Last", "UIN", "Email", "Lab Hours", ""];
+
+ $: console.log(headers);
</script>
<div class="overflow-auto h-full">
@@ -33,8 +35,8 @@
<!-- head -->
<thead>
<tr>
- {#each headers as header}
- <th>{header}</th>
+ {#each headers as header, i}
+ <th> {i == 0 ? peerTeachers.length : header}</th>
{/each}
</tr>
</thead>