Merge pull request #88 from Qortal/bugfix/get-primary-name-return

Bugfix/get primary name return
This commit is contained in:
Phillip 2025-06-17 14:49:03 +03:00 committed by GitHub
commit cb121103a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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,