mirror of
https://github.com/Qortal/chrome-extension.git
synced 2025-02-11 17:55:49 +00:00
fixes
This commit is contained in:
parent
68e9674058
commit
a4afdf998c
@ -1333,6 +1333,7 @@ function App() {
|
|||||||
const registerName = async () => {
|
const registerName = async () => {
|
||||||
try {
|
try {
|
||||||
if (!userInfo?.address) throw new Error("Your address was not found");
|
if (!userInfo?.address) throw new Error("Your address was not found");
|
||||||
|
if(!registerNameValue) throw new Error('Enter a name')
|
||||||
const fee = await getFee("REGISTER_NAME");
|
const fee = await getFee("REGISTER_NAME");
|
||||||
await show({
|
await show({
|
||||||
message: "Would you like to register this name?",
|
message: "Would you like to register this name?",
|
||||||
|
@ -2439,7 +2439,7 @@ async function registerName({ name }) {
|
|||||||
|
|
||||||
const res = await processTransactionVersion2(signedBytes);
|
const res = await processTransactionVersion2(signedBytes);
|
||||||
if (!res?.signature)
|
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;
|
return res;
|
||||||
}
|
}
|
||||||
async function makeAdmin({ groupId, qortalAddress }) {
|
async function makeAdmin({ groupId, qortalAddress }) {
|
||||||
|
@ -507,7 +507,10 @@ isDOMContentLoaded: false
|
|||||||
if (response.error) {
|
if (response.error) {
|
||||||
eventPort.postMessage({
|
eventPort.postMessage({
|
||||||
result: null,
|
result: null,
|
||||||
error: response,
|
error: {
|
||||||
|
error: response?.error,
|
||||||
|
message: typeof response?.error === 'string' ? response?.error : 'An error has occurred'
|
||||||
|
},
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
eventPort.postMessage({
|
eventPort.postMessage({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user