We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1ceb3e commit 26715b5Copy full SHA for 26715b5
apps/builder/app/builder/features/topbar/publish.tsx
@@ -361,7 +361,7 @@ const getStaticPublishStatusAndText = ({
361
publishStatus,
362
}: {
363
updatedAt: string;
364
- publishStatus: string;
+ publishStatus: "PENDING" | "FAILED" | "PUBLISHED";
365
}) => {
366
let status = publishStatus;
367
@@ -411,8 +411,7 @@ const PublishStatic = ({
411
412
const [isPending, setIsPendingOptimistic] = useOptimistic(false);
413
414
- const isPublishInProgress =
415
- project.latestStaticBuild?.publishStatus === "PENDING" || isPending;
+ const isPublishInProgress = status === "PENDING" || isPending;
416
417
return (
418
<Flex gap={2} shrink={false} direction={"column"}>
0 commit comments