1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-27 10:48:22 +00:00

fix condition fow showing qr code

This commit is contained in:
slowbackspace 2019-04-24 12:28:05 +02:00 committed by Vladimir Volek
parent 6dc3b8f9f3
commit a989279766

View File

@ -177,21 +177,21 @@ const AccountReceive = (props: Props) => {
</ShowAddressButton> </ShowAddressButton>
)} )}
</Row> </Row>
{((addressVerified || addressUnverified) && !isAddressVerifying) || {(((addressVerified || addressUnverified) && !isAddressVerifying) ||
(account.imported && ( account.imported) && (
<QrWrapper> <QrWrapper>
<Label> <Label>
<FormattedMessage {...l10nReceiveMessages.TR_QR_CODE} /> <FormattedMessage {...l10nReceiveMessages.TR_QR_CODE} />
</Label> </Label>
<StyledQRCode <StyledQRCode
bgColor="#FFFFFF" bgColor="#FFFFFF"
fgColor="#000000" fgColor="#000000"
level="Q" level="Q"
style={{ width: 150 }} style={{ width: 150 }}
value={account.descriptor} value={account.descriptor}
/> />
</QrWrapper> </QrWrapper>
))} )}
</AddressWrapper> </AddressWrapper>
</React.Fragment> </React.Fragment>
</Content> </Content>