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 {