From e6492d555283ecfb9fe1dbd75c924d4d17611f44 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Fri, 16 Aug 2024 13:05:02 +0200 Subject: [PATCH] generate keypair on first press --- src/components/ReceiveTokenDialog.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/ReceiveTokenDialog.vue b/src/components/ReceiveTokenDialog.vue index d2a5bcb5..c743506b 100644 --- a/src/components/ReceiveTokenDialog.vue +++ b/src/components/ReceiveTokenDialog.vue @@ -14,7 +14,7 @@ @@ -176,7 +176,8 @@ export default defineComponent({ ...mapActions(useTokensStore, ["addPendingToken"]), ...mapActions(useP2PKStore, [ "getPrivateKeyForP2PKEncodedToken", - "showKeyDetails", + "generateKeypair", + "showLastKey", ]), knowThisMintOfTokenJson: function (tokenJson) { const mintStore = useMintsStore(); @@ -248,9 +249,9 @@ export default defineComponent({ handleLockBtn: function () { this.showP2PKDialog = !this.showP2PKDialog; if (!this.p2pkKeys.length || !this.showP2PKDialog) { - return; + this.generateKeypair(); } - this.showKeyDetails(this.p2pkKeys[0].publicKey); + this.showLastKey(); }, receveIfDecodes: function () { try {