Skip to content

Commit

Permalink
Fix compile errors after linting
Browse files Browse the repository at this point in the history
-Somehow syntax errors occurred after linting and an import disappeared, fix these
  • Loading branch information
haoyangw committed Oct 31, 2024
1 parent cf30953 commit d46c859
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/app/(authenticated)/ask/ask-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
import JippyIcon from "@/public/jippy-icon/jippy-icon-sm";
import { useUserStore } from "@/store/user/user-store-provider";
import { getNextMonday, toQueryDateFriendly } from "@/utils/date";
import { UNVERIFIED_TIER_ID } from "@/types/billing";

const MAX_GP_QUESTION_LEN: number = 200; // max character count

Expand Down Expand Up @@ -155,7 +156,7 @@ const AskPage = ({ setIsLoading, isLoading }: AskPageProps) => {
{isUserUnverified ? (
<LimitAlert
isRedAlert={true}
warningText="Verify your email to start asking essay questions." />
warningText="Verify your email to start asking essay questions."
/>
) : hasTriesLeft ? (
<LimitAlert
Expand All @@ -168,7 +169,7 @@ const AskPage = ({ setIsLoading, isLoading }: AskPageProps) => {
) : (
<LimitAlert
isRedAlert={true}
warningText={`You've reached the question limit. It will reset on ${toQueryDateFriendly(getNextMonday())} 12:00AM.`} />
warningText={`You've reached the question limit. It will reset on ${toQueryDateFriendly(getNextMonday())} 12:00AM.`}
/>
)}
<div className="w-full flex items-center gap-x-4 gap-y-6 flex-col md:flex-row">
Expand Down

0 comments on commit d46c859

Please sign in to comment.