Skip to content

Commit

Permalink
fix(launchpad): Build error
Browse files Browse the repository at this point in the history
  • Loading branch information
tfrg committed Oct 31, 2024
1 parent 1ea9e6d commit e5b97ef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/web/src/utils/launchpad-get-status-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { PROJECT_STATUS_TYPE } from "@common/values";

export const getStatusText = (
type: PROJECT_STATUS_TYPE,
startTime?: string,
endTime?: string,
startTime: string,
endTime: string,
format: (key: string, options?: { [key: string]: string | number }) => string,
) => {
if (!startTime || !endTime) return "-";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import IconTimer from "@components/common/icons/IconTimer";
import { useTranslation } from "react-i18next";

interface LaunchpadStatusTimeChipProps {
startTime?: string;
endTime?: string;
startTime: string;
endTime: string;
status: PROJECT_STATUS_TYPE;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ const LaunchpadDetailContentsHeader: React.FC<
</div>
{data.projectStatus && (
<LaunchpadStatusTimeChip
startTime={data.startTime}
endTime={data.endTime}
startTime={data.startTime || ""}
endTime={data.endTime || ""}
status={data.projectStatus}
/>
)}
Expand Down

0 comments on commit e5b97ef

Please sign in to comment.