imports/ui/pages/accounts/account_activation.js
/**
   * Add a custom skill to the user profile
   */
Add a custom skill to the user profile
Add a custom skill to the user profile
handleSkillSubmit(value) {
    var keys = Object.keys(this.state.skills);
    for (var i = 0; i < keys.length; i++) {
      let skill = this.state.skills[keys[i]].toLowerCase();
      if (skill == value.toLowerCase()) {
        return;
      }
    }
    this.state.skills['custom-' + value] = value;
    this.setState({ skills: this.state.skills });
  }
handleSkillSubmit ( value ) { var keys = Object . keys ( this . state . skills ) ; for ( var i = 0 ; i < keys . length ; i ++ ) { let skill = this . state . skills [ keys [ i ] ] . toLowerCase ( ) ; if ( skill == value . toLowerCase ( ) ) { return ; } } this . state . skills [ 'custom-' + value ] = value ; this . setState ( { skills : this . state . skills } ) ; }
Add a custom skill to the user profile
Add a custom skill to the user profile
// Check if the skill is not already selected // Add the custom skill to the skills array, used to display the taxons tags