Skip to content

Commit 26715b5

Browse files
committed
Fix download
1 parent a1ceb3e commit 26715b5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

apps/builder/app/builder/features/topbar/publish.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ const getStaticPublishStatusAndText = ({
361361
publishStatus,
362362
}: {
363363
updatedAt: string;
364-
publishStatus: string;
364+
publishStatus: "PENDING" | "FAILED" | "PUBLISHED";
365365
}) => {
366366
let status = publishStatus;
367367

@@ -411,8 +411,7 @@ const PublishStatic = ({
411411

412412
const [isPending, setIsPendingOptimistic] = useOptimistic(false);
413413

414-
const isPublishInProgress =
415-
project.latestStaticBuild?.publishStatus === "PENDING" || isPending;
414+
const isPublishInProgress = status === "PENDING" || isPending;
416415

417416
return (
418417
<Flex gap={2} shrink={false} direction={"column"}>

0 commit comments

Comments
 (0)