Merge pull request #528 from trezor/fix/receive-qr-code

Fix/condition for showing qr code
pull/531/head
Vladimir Volek 5 years ago committed by GitHub
commit c28b983544
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save