Revert "Update details.js"

This reverts commit c437d5d79c.
This commit is contained in:
Overtorment 2020-07-23 19:11:37 +01:00
parent a9e706422f
commit 20d53d1d54

View File

@ -224,7 +224,7 @@ const ReceiveDetails = () => {
if (wallet) {
if (!wallet.getUserHasSavedExport()) {
BlueAlertWalletExportReminder({
onSuccess: () => obtainWalletAddress(),
onSuccess: obtainWalletAddress,
onFailure: () => {
goBack();
navigate('WalletExport', {
@ -274,7 +274,6 @@ const ReceiveDetails = () => {
break;
}
setBip21encoded(DeeplinkSchemaMatch.bip21encode(address, { amount, label: customLabel }));
setShowAddress(true);
};
const renderCustomAmountModal = () => {
@ -339,7 +338,8 @@ const ReceiveDetails = () => {
url={`https://blockstream.info/address/${address}`}
/>
)}
{showAddress ? renderReceiveDetails() : <BlueLoadingHook />}
{showAddress && renderReceiveDetails()}
{!showAddress && <BlueLoadingHook />}
</View>
);
};