Skip to content

Commit

Permalink
fix: redirect on add new user
Browse files Browse the repository at this point in the history
  • Loading branch information
Dim145 committed Jun 3, 2024
1 parent 1844990 commit a58a942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/components/activityApplications/Wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ class Wizard extends React.Component {
.then((result) =>
{
if (this.props.newApplicationForExistingUser || !this.props.currentUserIsAdmin || data.activity_application === null) {
window.location.href = `/new_application/${this.state.user.id}`;
window.location.href = `/new_application/${this.state.user.id || _.get(data, "activity_application.user_id")}`;
} else {
window.location.href = `/inscriptions/${data.activity_application.id}`;
}
Expand Down

0 comments on commit a58a942

Please sign in to comment.