Skip to content

Commit

Permalink
fix bug in events page
Browse files Browse the repository at this point in the history
  • Loading branch information
ArshMalik02 committed Sep 3, 2023
1 parent b8e52a8 commit 6657928
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pages/eventsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ interface Event {

interface Props {
events: Event[];
committee: string;
}

export default function Events({ events }: Props): JSX.Element {
Expand All @@ -52,7 +53,7 @@ export default function Events({ events }: Props): JSX.Element {

const filteredEvents = indexedEvents.filter(
(event) =>
event.committee === committee && event.start > Date.now().toString(),
event.committee === committee,
);

if (committee === 'board') {
Expand Down
2 changes: 1 addition & 1 deletion scripts/event-generator-sheets.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { google } from 'googleapis';
import { getCssStringFromCommittee, generateSingleEvent } from './lib.mjs';

// .env config
dotenv.config({ path: '.env.local' });
dotenv.config();
const SPREADSHEET_ID = process.env.EVENTS_SPREADSHEET_ID;
const SERVICE_ACCOUNT = process.env.SERVICE_ACCOUNT ?? '';

Expand Down
2 changes: 1 addition & 1 deletion styles/global_variables.module.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// to use variables across other scss files, do a @import "global_variables"
$acm-blue: #1e6cff;
$committee-color: #5EDA12;
$committee: TeachLA;
$committee: ICPC;

:export {
committee: $committee;
Expand Down

0 comments on commit 6657928

Please sign in to comment.