mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-07-23 04:36:52 +00:00
IS_USING_PUBLIC_NODE
This commit is contained in:
@@ -52,7 +52,7 @@ export const sendMessageBackground = (action, data = {}, timeout = 180000, isExt
|
||||
});
|
||||
}).then((response) => {
|
||||
// Return payload or error based on response content
|
||||
if (response?.payload) {
|
||||
if (response?.payload !== null && response?.payload !== undefined) {
|
||||
return response.payload;
|
||||
} else if (response?.error) {
|
||||
return { error: response.error, message: response?.message || "An error occurred" };
|
||||
|
Reference in New Issue
Block a user