Skip to content

Commit

Permalink
fix(order): min order 72h
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikadows committed Jun 25, 2022
1 parent 7d98225 commit 482bfc5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Checkout/CheckoutCustomerInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ const CheckoutCustomerInfo: React.FC<IHandleNav> = ({ handlePrevious }) => {
className="appearance-none block w-full bg-grey-lighter text-grey-darker border border-grey-lighter rounded py-3 px-4 mb-3"
id="pickupDate"
type="date"
// disable past dates + 3 days from today (+4 because it's include today)
min={new Date(Date.now() + 4 * 24 * 60 * 60 * 1000).toISOString().split('T')[0]}
required={true}
/>
</div>
Expand Down

0 comments on commit 482bfc5

Please sign in to comment.