mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-04-20 10:05:56 +00:00
fixes
This commit is contained in:
parent
f90bec1c67
commit
74b682ce38
@ -1265,6 +1265,7 @@ function App() {
|
||||
const registerName = async () => {
|
||||
try {
|
||||
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");
|
||||
await show({
|
||||
message: "Would you like to register this name?",
|
||||
|
@ -2099,7 +2099,7 @@ export async function registerName({ name }) {
|
||||
|
||||
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;
|
||||
}
|
||||
export async function makeAdmin({ groupId, qortalAddress }) {
|
||||
|
@ -481,7 +481,10 @@ isDOMContentLoaded: false
|
||||
if (response.error) {
|
||||
eventPort.postMessage({
|
||||
result: null,
|
||||
error: response,
|
||||
error: {
|
||||
error: response?.error,
|
||||
message: typeof response?.error === 'string' ? response?.error : 'An error has occurred'
|
||||
},
|
||||
});
|
||||
} else {
|
||||
eventPort.postMessage({
|
||||
|
Loading…
x
Reference in New Issue
Block a user