function nomineeSubmission(values, sortedSubmission) {
  // Sort entries
  // Note that "stage": "nominee" for all nominations
  sortedSubmission = {
    name: values.name ? values.name : "",
    aliases: values.aliases ? [values.aliases] : [""],
    description: values.description ? values.description : "",
    website: values.website ? values.website : "",
    license: values.license ? values.license : [],
    SDGs: values.SDGs ? values.SDGs : [],
    sectors: values.sectors ? values.sectors : [],
    type: values.type ? values.type : [],
    repositoryURL: values.repositoryURL ? values.repositoryURL : "",
    organizations: values.organizations ? [values.organizations] : [],
    stage: "nominee",
  };
  // Order nominee fields in the correct order e.g organizations
  sortedSubmission = orderFields(sortedSubmission);
  return sortedSubmission;
}
// Nominee processing before opening pull request
Nominee processing before opening pull request
Nominee processing before opening pull request
function nomineeSubmission(values, sortedSubmission) {
  sortedSubmission = {
    name: values.name ? values.name : "",
    aliases: values.aliases ? [values.aliases] : [""],
    description: values.description ? values.description : "",
    website: values.website ? values.website : "",
    license: values.license ? values.license : [],
    SDGs: values.SDGs ? values.SDGs : [],
    sectors: values.sectors ? values.sectors : [],
    type: values.type ? values.type : [],
    repositoryURL: values.repositoryURL ? values.repositoryURL : "",
    organizations: values.organizations ? [values.organizations] : [],
    stage: "nominee",
  };
  sortedSubmission = orderFields(sortedSubmission);
  return sortedSubmission;
}
function nomineeSubmission ( values , sortedSubmission ) { sortedSubmission = { name : values . name ? values . name : "" , aliases : values . aliases ? [ values . aliases ] : [ "" ] , description : values . description ? values . description : "" , website : values . website ? values . website : "" , license : values . license ? values . license : [ ] , SDGs : values . SDGs ? values . SDGs : [ ] , sectors : values . sectors ? values . sectors : [ ] , type : values . type ? values . type : [ ] , repositoryURL : values . repositoryURL ? values . repositoryURL : "" , organizations : values . organizations ? [ values . organizations ] : [ ] , stage : "nominee" , } ; sortedSubmission = orderFields ( sortedSubmission ) ; return sortedSubmission ; }
Nominee processing before opening pull request
Nominee processing before opening pull request
// Sort entries // Note that "stage": "nominee" for all nominations // Order nominee fields in the correct order e.g organizations