diff --git a/src/services/sessions/endpoints.js b/src/services/sessions/endpoints.js index ea3a7b3..727836a 100644 --- a/src/services/sessions/endpoints.js +++ b/src/services/sessions/endpoints.js @@ -511,11 +511,11 @@ async function createIdvSessionV3(req, res) { .status(validationResult.status) .json({ error: validationResult.error }); } - } - - return res + } else { + return res .status(validationResult.status) .json({ error: validationResult.error }); + } } // Note: We do not immediately call session.save() after adding txHash to