Skip to content

Commit 61ab4f8

Browse files
Remove committe length magic number
1 parent be63008 commit 61ab4f8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

client/src/pages/about.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export default function AboutPage() {
118118
}
119119

120120
if (isPending) {
121-
for (let i = 0; i < 8; i++) {
121+
for (let i = 0; i < roleOrder.length; i++) {
122122
committeeList.push({
123123
name: "Loading...",
124124
pronouns: "",
@@ -144,7 +144,7 @@ export default function AboutPage() {
144144
</main>
145145
);
146146
} else {
147-
committeeList.push(...committee.slice(0, 8));
147+
committeeList.push(...committee.slice(0, roleOrder.length));
148148
}
149149

150150
return (

0 commit comments

Comments
 (0)