Skip to content

Commit

Permalink
generate keypair on first press
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Aug 16, 2024
1 parent 3191b86 commit e6492d5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/ReceiveTokenDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<q-btn
unelevated
class="q-mx-none"
v-if="!receiveData.tokensBase64.length && p2pkKeys.length"
v-if="!receiveData.tokensBase64.length"
@click="handleLockBtn"
>
<q-icon name="lock_outline" class="q-pr-sm" />
Expand Down Expand Up @@ -176,7 +176,8 @@ export default defineComponent({
...mapActions(useTokensStore, ["addPendingToken"]),
...mapActions(useP2PKStore, [
"getPrivateKeyForP2PKEncodedToken",
"showKeyDetails",
"generateKeypair",
"showLastKey",
]),
knowThisMintOfTokenJson: function (tokenJson) {
const mintStore = useMintsStore();
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit e6492d5

Please sign in to comment.