From 73f3825a979fae8929e681f8b65f56fd98659272 Mon Sep 17 00:00:00 2001 From: PhilReact Date: Mon, 16 Jun 2025 21:06:17 +0300 Subject: [PATCH 1/2] fix return of primary name --- src/qortal/qortal-requests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qortal/qortal-requests.ts b/src/qortal/qortal-requests.ts index ba04c96..2836533 100644 --- a/src/qortal/qortal-requests.ts +++ b/src/qortal/qortal-requests.ts @@ -1939,7 +1939,7 @@ function setupMessageListenerQortalRequest() { case 'GET_PRIMARY_NAME': { try { const res = await getNameInfoForOthers(request.payload?.address); - const resData = res ? res : null; + const resData = res ? res : ''; event.source.postMessage( { requestId: request.requestId, From 99a772452ecdef80cc6c20e6594eadc287ee5f4a Mon Sep 17 00:00:00 2001 From: PhilReact Date: Tue, 17 Jun 2025 14:48:27 +0300 Subject: [PATCH 2/2] fix inviteToGroup error message --- src/background/background.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/background/background.ts b/src/background/background.ts index 3c688ff..e2b41cc 100644 --- a/src/background/background.ts +++ b/src/background/background.ts @@ -2521,7 +2521,7 @@ export async function inviteToGroup({ groupId, qortalAddress, inviteTime }) { const res = await processTransactionVersion2(signedBytes); if (!res?.signature) - throw new Error('Transaction was not able to be processed'); + throw new Error(res?.message || 'Transaction was not able to be processed'); return res; }