Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 committed Apr 16, 2024
1 parent 908e982 commit f3807d7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ NPM_REGISTRY=
NPM_TOKEN=
VCS_REF=
VERSION=
NEXT_PUBLIC_API_URL=https://api.huwelijksplanner.online/api
NEXT_PUBLIC_API_URL=https://api.huwelijksplanner.online/
NEXT_PUBLIC_MATOMO_URL=https://stats.utrecht.nl/analytics/
NEXT_PUBLIC_MATOMO_SITE_ID=5
NEXT_PUBLIC_NL_DESIGN_THEME_CLASSNAME=leiden-theme
Expand Down
53 changes: 29 additions & 24 deletions pages/extra/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,33 +72,33 @@ export default function MultistepForm1() {
return;
}

const test = getCosts(formData).toString();

if (!reservation) return;

setSaving(true);

setMarriageOptions({
...marriageOptions,
reservation: {
...reservation,
"ceremony-price-amount": test,
},
});

setSaving(false);
push("/voorgenomen-huwelijk/checken");

// HuwelijkService.huwelijkPatchItem({
// id: marriageOptions.id as string,
// requestBody: {
// producten: [formData["marriage-certificate-kind"]],
// },
// })
// .then(({ kosten }) => {

// })
// .finally(() => setSaving(false));
if (marriageOptions.id) {
HuwelijkService.huwelijkGet({ id: marriageOptions.id.toString() }).then((response: any) => {

Check warning on line 80 in pages/extra/index.tsx

View workflow job for this annotation

GitHub Actions / continuous-integration

Unexpected any. Specify a different type
// Kosten
HuwelijkService.huwelijkPostEigenschap({
requestBody: {
zaak: `https://api.huwelijksplanner.online/api/zrc/v1/zaken/${response.id ?? ""}`,
eigenschap:
"https://api.huwelijksplanner.online/api/ztc/v1/eigenschappen/416de8b8-d5d1-4f44-9a1e-1846d552292c",
waarde: getCosts(formData["marriage-certificate-kind"]).toString() ?? "",
},
}).finally(() => {
setMarriageOptions({
...marriageOptions,
reservation: {
...reservation,
"ceremony-price-amount": getCosts(formData["marriage-certificate-kind"]).toString(),
},
});
setSaving(false);
push("/voorgenomen-huwelijk/checken");
});
});
}
};

return (
Expand Down Expand Up @@ -171,7 +171,12 @@ export default function MultistepForm1() {
)}
</section>
<ButtonGroup>
<Button type="submit" name="type" appearance="primary-action-button">
<Button
disabled={saving || productLoading}
type="submit"
name="type"
appearance="primary-action-button"
>
Bevestigen
</Button>
</ButtonGroup>
Expand Down

0 comments on commit f3807d7

Please sign in to comment.