1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-14 04:19:09 +00:00

Merge pull request #576 from trezor/fix/show-xrp-qrcode

Fix showing qr code for xrp
This commit is contained in:
Vladimir Volek 2019-05-28 15:51:28 +02:00 committed by GitHub
commit 5f4a9863d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,21 +181,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>