From 99144bb06f573ef4e5f5ee4ee3086b98c37e70e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren?= Date: Tue, 19 Nov 2024 09:12:26 -0600 Subject: [PATCH] Update Staking UI (hacky) Omitted proper request types and parsing. --- src/lib/RequestParser.ts | 2 ++ src/views/SignStaking.vue | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/lib/RequestParser.ts b/src/lib/RequestParser.ts index 290987a9..9e7f6bb5 100644 --- a/src/lib/RequestParser.ts +++ b/src/lib/RequestParser.ts @@ -108,6 +108,7 @@ export class RequestParser { } return { + ...request, // Pass-through all other properties kind: requestType, appName: signStakingRequest.appName, senderLabel: signStakingRequest.senderLabel, @@ -771,6 +772,7 @@ export class RequestParser { case RequestType.SIGN_STAKING: const signStakingRequest = request as ParsedSignStakingRequest; return { + ...request, // Pass-through all other properties appName: signStakingRequest.appName, senderLabel: signStakingRequest.senderLabel, recipientLabel: signStakingRequest.recipientLabel, diff --git a/src/views/SignStaking.vue b/src/views/SignStaking.vue index a6d42ba4..396826ff 100644 --- a/src/views/SignStaking.vue +++ b/src/views/SignStaking.vue @@ -44,6 +44,8 @@ export default class SignStaking extends Vue { } const request: KeyguardClient.SignStakingRequest = { + ...this.request, // Pass-through all request parameters + appName: this.request.appName, keyId,