title: Add function call inside ternary operator in JSX
body: <p>i want to call a function inside a ternary operator condition.
  My code is like this:</p>
  
  <pre><code>{snapshot.Bid[0].Price !== 'undefined'
                    ? `(${initialOrderInfo.snapshot.Bid[0].Price}`
                      {renderCurrencySymbol(
                        initialOrderInfo.instrumentInfo.currency
                      )}
  </code></pre>
  
  <p>But it shows me multiple errors. Any ideas what should i do?</p>