Skip to content

Commit

Permalink
changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
julianbenegas committed Aug 29, 2023
1 parent 16a47b7 commit 5c942d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/popular-pants-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@bsmnt/drop': patch
---

Don't throw an error, just a warning
4 changes: 1 addition & 3 deletions packages/drop/src/countdown/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ const CountdownProvider = ({
: null;

if (startTimestamp && startTimestamp >= endTimestamp) {
throw new Error(
"startDate must be before endDate. Please check your start and end dates."
);
console.warn("startDate must be before endDate. Please check your start and end dates.")
}

return create<CountdownContext>((set) => {
Expand Down

1 comment on commit 5c942d0

@vercel
Copy link

@vercel vercel bot commented on 5c942d0 Aug 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

commerce-toolkit-nextjs-shopify – ./examples/nextjs-shopify

commerce-toolkit-nextjs-shopify.vercel.app
commerce-toolkit-nextjs-shopify-git-main-basement.vercel.app
commerce-toolkit-nextjs-shopify-basement.vercel.app

Please sign in to comment.