Skip to content

Commit

Permalink
i think constants are set properly now
Browse files Browse the repository at this point in the history
  • Loading branch information
23langloisj committed Feb 5, 2025
1 parent 99012a6 commit e2fe2e3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/api/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@
*/
export const COOKIE_DOMAIN =
process.env.NODE_ENV === "production" ? "graduatenu.com" : "localhost";

export const UNDECIDED = "Undecided";
1 change: 0 additions & 1 deletion packages/api/src/major/major.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
SupportedMajors,
SupportedConcentrations,
} from "@graduate/common";
import { UNDECIDED } from "@graduate/common/dist/constants";
import { Injectable, Logger } from "@nestjs/common";
import { formatServiceCtx } from "../utils";
import { MAJOR_YEARS, MAJORS } from "./major-collator";
Expand Down
1 change: 1 addition & 0 deletions packages/common/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ export const forgotPasswordTokenExpiredError = "Token expired";
export const unableToSendEmail = "Unable to send email";
export const emailAlreadyConfirmed = "Email already confirmed";
export const UNDECIDED = "Undecided";
export const UNDECIDED_CONCENTRATION = "Concentration Undecided";
2 changes: 1 addition & 1 deletion packages/frontend/components/Sidebar/SidebarContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import DropdownWarning from "./DropdownWarning";
import ConcentrationDropdownWarning from "./ConcentrationDropdownWarning";
import { COOP_BLOCK } from "./Sidebar";
import { SandboxArea } from "./SandboxArea";
import { UNDECIDED_CONCENTRATION } from "../../utils";
import { UNDECIDED_CONCENTRATION } from "@graduate/common";

interface SidebarContainerProps {
title: string;
Expand Down

0 comments on commit e2fe2e3

Please sign in to comment.