Skip to content

Commit

Permalink
for node12
Browse files Browse the repository at this point in the history
  • Loading branch information
ROZ-MOFUMOFU-ME authored May 2, 2024
1 parent af3451d commit d527cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/blockTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ var BlockTemplate = module.exports = function BlockTemplate(jobId, rpcData, pool
};

this.getOdoKey = function () {
return this.rpcData?.odokey || null;
return this.rpcData && this.rpcData.odokey ? this.rpcData.odokey : null;
};

this.getJobParams = function () {
Expand Down

0 comments on commit d527cd3

Please sign in to comment.