Skip to content

Commit

Permalink
Redirect to root on consent request
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAndrewJackson committed Oct 5, 2022
1 parent fa9ef62 commit 35be57b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clients/ops/privacy-center/pages/consent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,10 @@ const Consent: NextPage = () => {
}
);
(await response.json()) as ApiUserConcents;
router.push("/");
// TODO: display alert on successful patch
// TODO: display error alert on failed patch
}, [consentItems, consentRequestId, verificationCode]);
}, [consentItems, consentRequestId, verificationCode, router]);

return (
<div>
Expand Down

0 comments on commit 35be57b

Please sign in to comment.