Skip to content

Commit

Permalink
return url from env
Browse files Browse the repository at this point in the history
  • Loading branch information
Przemek committed Apr 22, 2024
1 parent 8928ca7 commit 7de4f30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/organisms/RegisterForm/RegisterForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export const RegisterForm: React.FC<RegisterFormProps> = ({
onSubmit={(values, { setSubmitting, resetForm, setErrors }) => {
register({
...values,
return_url: `${window.location.origin}${return_url}`,
return_url: `${return_url}`,
})
.then((res: DefaultResponse<RegisterResponse>) => {
resetForm();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const ResetPasswordForm: React.FC<Props> = ({
) => {
forgot({
email: values.email,
return_url: `${window.location.origin}/${return_url}`,
return_url: `${return_url}`,
})
.then(() => onFirstStepSuccess && onFirstStepSuccess())
.catch((err: ResponseError<DefaultResponseError>) => {
Expand Down

0 comments on commit 7de4f30

Please sign in to comment.