1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-06-28 00:27:58 +02:00

show infoline only when everything is ready

This commit is contained in:
Matthias Kretschmann 2018-10-14 22:35:58 +02:00
parent 6e79a276ff
commit 041d934778
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -47,10 +47,13 @@ export default class InputGroup extends PureComponent {
>
Make it rain
</button>
<div className={styles.infoline}>
<Conversion amount={amount} />
{selectedAccount && <Account account={selectedAccount} />}
</div>
{hasCorrectNetwork &&
hasAccount && (
<div className={styles.infoline}>
<Conversion amount={amount} />
{selectedAccount && <Account account={selectedAccount} />}
</div>
)}
</div>
)
}