Commit 234a7142 authored by TJHeeringa's avatar TJHeeringa

Minor fixes

parent 52192b0a
import Info from "App/Components/Info/Info";
import PropTypes from "prop-types";
import React, { Component } from "react";
import React from "react";
export const ProfileInfo = (props) => {
const morphProfileToData = (profile) => {
......@@ -26,7 +26,7 @@ export const ProfileInfo = (props) => {
"BIC": profile.bic_code
};
data["Education"] = {
"Master:": profile.is_master,
"Master:": profile.is_master ? "Yes" : "No",
"Study": profile.study
};
return data;
......
......@@ -74,6 +74,7 @@ export class AssociationProfile extends Component {
{ this.state.form_type === "info"
?
<Info
headerless={false}
data={this.morphMembershipToData(association_membership)}
/>
:
......
......@@ -38,7 +38,7 @@ export const AuthorizedRoutes = (props) => {
}
const number_of_profiles = sunmember.profiles.length;
const preferred_profile_set = sunmember.preferred_profile !== undefined;
const preferred_profile_set = sunmember.preferred_profile !== null;
const claimed_memberships = sunmember.association_memberships.filter(membership => membership.status === "claimed");
const gotClaimedMemberships = claimed_memberships.length > 0;
const needToMergeProfiles = !preferred_profile_set && number_of_profiles > 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment