From 098da59648b1a302e42e05c76833a71725de6dae Mon Sep 17 00:00:00 2001 From: Phillip Lang Martinez Date: Fri, 26 Aug 2022 19:12:04 +0300 Subject: [PATCH] fixes --- .../core/sponsorship-list/sponsorship-list.src.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/qortal-ui-plugins/plugins/core/sponsorship-list/sponsorship-list.src.js b/qortal-ui-plugins/plugins/core/sponsorship-list/sponsorship-list.src.js index fb6e6438..5010f1f8 100644 --- a/qortal-ui-plugins/plugins/core/sponsorship-list/sponsorship-list.src.js +++ b/qortal-ui-plugins/plugins/core/sponsorship-list/sponsorship-list.src.js @@ -139,7 +139,7 @@ class SponsorshipList extends LitElement { changeStatus(value){ this.status = value - saveToClipboard(translate( + this.saveToClipboard(translate( "walletpage.wchange4" )) @@ -384,6 +384,13 @@ class SponsorshipList extends LitElement { } const getTxnRequestResponse = (txnResponse) => { + + if(txnResponse.message.includes('multiple')){ + this.isLoadingCreateSponsorship = false + + this.privateRewardShareKey = txnResponse.data + this.confirmRelationship(recipientPublicKey) + } if (txnResponse.success === false && txnResponse.message) { this.errorMessage = txnResponse.message @@ -411,7 +418,7 @@ class SponsorshipList extends LitElement { - async confirmRelationship(){ + async confirmRelationship(recipientPublicKey){ let interval = null let stop = false @@ -437,6 +444,7 @@ class SponsorshipList extends LitElement { } } catch (error) { + console.error(error) }