title: Why is my URL [object%20Object] in API call?
body: <p>My render is below. I have run out of ideas.</p>
  
  <pre><code>class Settings extends Component {
  
    render(){
      return(
      &lt;div className='App container'&gt;
         &lt;h3&gt;Select Currency&lt;/h3&gt;
        &lt;select className="custom-select"
          onChange={(prop, attr) =&gt; this.props.fetchData(id,value)}&gt;
          &lt;option value='selected'&gt;&lt;/option&gt;
          &lt;option value='EUR'&gt;EUR&lt;/option
        &lt;/select&gt;
        &lt;Link to='/' className="btn" type="submit"&gt;Submit&lt;/Link&gt;
      &lt;/div&gt;
    )
   }
  }
  
  }
  </code></pre>
  
  <p>Please help, what is wrong with my code? How can I solve this strange error?</p>