From bf60cf6275ebe91ed38b095cf822ed0c4279ddc4 Mon Sep 17 00:00:00 2001 From: Caleb Tuttle <1calebtuttle@gmail.com> Date: Fri, 19 Apr 2024 09:41:46 -0400 Subject: [PATCH] fix --- src/services/sessions/endpoints.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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