Skip to content

Commit

Permalink
fix: remove a hardcoded value
Browse files Browse the repository at this point in the history
  • Loading branch information
dleard committed Jun 2, 2020
1 parent 744862e commit c22d0a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/pages/reporter/user-dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ export default class UserDashBoard extends Component<Props> {
};

handleOrgConfirm = async (active, environment) => {
const {id: userId} = this.props.query.session.ciipUserBySub;
const {id: userId, rowId} = this.props.query.session.ciipUserBySub;
const response = await createUserOrganisationMutation(
environment,
{
input: {
ciipUserOrganisation: {
// Relay requires a value here because it is set to not null, but the userId value is set via a trigger on insert
userId: 1,
userId: rowId,
organisationId: this.state.selectedOrg,
status: active ? 'APPROVED' : 'PENDING'
}
Expand Down

0 comments on commit c22d0a8

Please sign in to comment.