Skip to content

Commit

Permalink
feat: nonprofit/commercial consistency across form
Browse files Browse the repository at this point in the history
  • Loading branch information
rushtong committed Jan 23, 2024
1 parent a8dac67 commit 26bfb78
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pages/DatasetRegistration.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class DatasetRegistration extends Component {
ethics: false,
geographic: false,
moratorium: false,
commercialUse: false,
nonProfit: false,
hmb: false,
npoa: false,
Expand Down Expand Up @@ -182,6 +183,7 @@ class DatasetRegistration extends Component {
let ethics = dataUse.ethicsApprovalRequired;
let geographic = dataUse.geographicalRestrictions;
let moratorium = dataUse.publicationMoratorium;
let commercialUse = dataUse.commercialUse;
let nonProfit = dataUse.nonProfitUse;
let hmb = dataUse.hmbResearch;
// if the dataset's POA value is set to false, we need to check the NPOA (or NOT POA) option
Expand All @@ -202,6 +204,7 @@ class DatasetRegistration extends Component {
prev.formData.ethics = ethics;
prev.formData.geographic = geographic;
prev.formData.moratorium = moratorium;
prev.formData.commercialUse = commercialUse;
prev.formData.nonProfit = nonProfit;
prev.formData.hmb = hmb;
prev.formData.npoa = npoa;
Expand Down Expand Up @@ -633,6 +636,9 @@ class DatasetRegistration extends Component {
if (data.npoa) {
result.populationOriginsAncestry = false;
}
if (data.commercialUse) {
result.commercialUse = data.commercialUse;
}
if (data.nonProfit) {
result.nonProfitUse = data.nonProfit;
}
Expand Down Expand Up @@ -688,6 +694,7 @@ class DatasetRegistration extends Component {
secondaryOther = false,
secondaryOtherText = '',
genetic = false,
commercialUse = false,
nonProfit = false,
publication = false,
collaboration = false,
Expand Down

0 comments on commit 26bfb78

Please sign in to comment.