web-installer/src/components/chains/common/forms/chainForm.js
// NextStep function will save the chain name, step changer
NextStep function will save the chain name, step changer
NextStep function will save the chain name step changer
function nextStep(step) {
    if (currentChain) {
      const payload = {
        id: currentChain,
        chain_name: values.chain_name,
      };
      updateChainDetails(payload);
    } else {
      const payload = {
        chain_name: values.chain_name,
      };
      saveChainDetails(payload);
    }
    stepChanger({ step });
  }
function nextStep ( step ) { if ( currentChain ) { const payload = { id : currentChain , chain_name : values . chain_name , } ; updateChainDetails ( payload ) ; } else { const payload = { chain_name : values . chain_name , } ; saveChainDetails ( payload ) ; } stepChanger ( { step } ) ; }
NextStep function will save the chain name, step changer
NextStep function will save the chain name step changer
// If there is a current chain assigned already, overwrite the value // Otherwise add a new chain name.