Skip to content

Commit

Permalink
Merge pull request #52 from mediaopt/hotfix/34766-only-older-than-18
Browse files Browse the repository at this point in the history
Hotfix/34766 only older than 18
  • Loading branch information
LiudmylaMasliuk authored Dec 6, 2023
2 parents 646dd0e + 9687dcf commit ddba7eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "paypal-commercetools-client",
"version": "0.0.77",
"version": "0.0.78",
"private": false,
"type": "module",
"license": "MIT",
Expand Down
4 changes: 3 additions & 1 deletion src/components/PayUponInvoice/PayUponInvoiceMask.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ export const PayUponInvoiceMask: FC<PayUponInvoiceMaskProps> = ({

const [phone, setPhone] = useState("+49 ");
const notifyWrongPhone = () => notify("Warning", t("wrongPhone"));
const maxDate = new Date().toJSON().slice(0, 10);
let date = new Date();
date.setFullYear(date.getFullYear() - 18);
const maxDate = date.toJSON().slice(0, 10);
const [ratepayMessage, setRatepayMessage] = useState<string>();

const submitForm = async (formData: HTMLFormElement) => {
Expand Down

0 comments on commit ddba7eb

Please sign in to comment.