Skip to content

Commit

Permalink
prevent exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Cabecinha84 committed Oct 7, 2024
1 parent 32d1964 commit 46c3126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ZelBack/src/services/appsService.js
Original file line number Diff line number Diff line change
Expand Up @@ -13134,7 +13134,7 @@ async function monitorNodeStatus() {
// eslint-disable-next-line no-await-in-loop
const response = await axios.get(`http://${ip}:${port}/daemon/getfluxnodestatus`, { timeout, cancelToken: source.token }).catch();
isResolved = true;
if (response && response.data.status === 'success' && response.data.data.status === 'CONFIRMED') {
if (response && response.data && response.data.status === 'success' && response.data.data.status === 'CONFIRMED') {
log.info(`monitorNodeStatus - IP ${location} is available and confirmed, awaiting for a new confirmation transaction`);
} else {
log.info(`monitorNodeStatus - Removing IP ${location} from globalAppsLocations`);
Expand Down

0 comments on commit 46c3126

Please sign in to comment.