Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

fix: only show daily publish count toast when 10 or fewer remain (#5684)

Oleg Isonen3b62599ad353
diff --git a/apps/builder/app/builder/features/publish/publish.tsx b/apps/builder/app/builder/features/publish/publish.tsx
index d0ceee613d..892353d272 100644
--- a/apps/builder/app/builder/features/publish/publish.tsx
+++ b/apps/builder/app/builder/features/publish/publish.tsx
@@ -532,7 +532,7 @@ const Publish = ({
toast.success(
<>
The project has been successfully published.{" "}
- {timesLeft > 0 && (
+ {timesLeft > 0 && timesLeft <= 10 && (
<div>
You have {timesLeft} out of {maxDailyPublishesPerUser} daily
publications remaining. The counter resets tomorrow.