We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2cb1f79 + c5cec51 commit 55caeefCopy full SHA for 55caeef
routes/api/account.js
@@ -498,7 +498,7 @@ module.exports = function (app) {
498
} else {
499
req.user.getJourneyNextItem((err, s) => {
500
if (err) return next(err);
501
- if (!s) return res.json({});
+ if (!s || !s.program) return res.json({});
502
req.user.getJourneyPercentage(s.program.id, (err, p) => {
503
504
if (s && s.next) delete s.next;
0 commit comments