Skip to content

Commit

Permalink
Finance: display "?" when a token symbol is unknown (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpierre authored Dec 20, 2018
1 parent 9ceb28f commit e521196
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions apps/finance/app/src/components/BalanceToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const splitAmount = amount => {

const BalanceToken = ({ amount, symbol, verified, convertedAmount = -1 }) => (
<Main>
<Token>
<Token title={symbol || 'Unknown symbol'}>
{verified &&
symbol && (
<img
Expand All @@ -25,7 +25,7 @@ const BalanceToken = ({ amount, symbol, verified, convertedAmount = -1 }) => (
src={`https://chasing-coins.com/coin/logo/${symbol}`}
/>
)}
{symbol || ' '}
{symbol || '?'}
</Token>
<Amount>{splitAmount(amount.toFixed(3))}</Amount>
<ConvertedAmount>
Expand All @@ -41,9 +41,8 @@ const Main = styled.div``
const Token = styled.div`
display: flex;
align-items: center;
font-variant: small-caps;
text-transform: lowercase;
font-size: 18px;
text-transform: uppercase;
font-size: 14px;
color: ${theme.textSecondary};
img {
margin-right: 10px;
Expand Down

0 comments on commit e521196

Please sign in to comment.