 
 
     else if domainOptionValue is 'existing'
-      @createDomain {domainName, regYears:0, domainType:'existing'}, (err, domain)=>
+      @createDomain {domain, regYears:0, domainType:'existing'}, (err, domain)=>
         createButton.hideLoader()
         if err
           warn err

  showSuccess:(domain) ->
    @clearSuggestions()
    form            = @forms["Domain Address"]
    {domainName}    = form.inputs
    {suggestionBox} = form.fields
    {close, createButton, cancel, another} = form.buttons


class DomainCreationForm extends KDTabViewWithForms

  domainOptions = [
      { title : "Create a subdomain", value : "subdomain" }
      { title : "I want to register a domain", value : "new" }
