From 750371a3f83f4252bb87546d0eb9689b3dd5690a Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Mon, 22 Feb 2021 16:46:12 -0400 Subject: [PATCH] fix: don't estimate gas before when displaying sticker packs Fixes: #1728 --- ui/shared/status/StatusStickerMarket.qml | 4 ---- ui/shared/status/StatusStickerPackPurchaseModal.qml | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ui/shared/status/StatusStickerMarket.qml b/ui/shared/status/StatusStickerMarket.qml index e63cbca16c..e6505e63be 100644 --- a/ui/shared/status/StatusStickerMarket.qml +++ b/ui/shared/status/StatusStickerMarket.qml @@ -17,10 +17,6 @@ Item { signal updateClicked(int packId) signal buyClicked(int packId) - Component.onCompleted: { - walletModel.getGasPricePredictions() - } - GridView { id: availableStickerPacks width: parent.width diff --git a/ui/shared/status/StatusStickerPackPurchaseModal.qml b/ui/shared/status/StatusStickerPackPurchaseModal.qml index 77f08fe4c7..65f0687fb8 100644 --- a/ui/shared/status/StatusStickerPackPurchaseModal.qml +++ b/ui/shared/status/StatusStickerPackPurchaseModal.qml @@ -12,6 +12,11 @@ ModalPopup { property int stickerPackId: -1 property string packPrice property bool showBackBtn: false + + Component.onCompleted: { + walletModel.getGasPricePredictions() + } + //% "Authorize %1 %2" title: qsTrId("authorize--1--2").arg(Utils.stripTrailingZeros(packPrice)).arg(asset.symbol)