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; } 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,