From cc61f840bc42041be5dd694e231fde4d1ca6edef Mon Sep 17 00:00:00 2001 From: miles-grant-ibigroup Date: Thu, 30 May 2024 11:05:55 -0400 Subject: [PATCH] safer hash check --- lib/reducers/create-otp-reducer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reducers/create-otp-reducer.js b/lib/reducers/create-otp-reducer.js index 45d4bdf80..e692d97a4 100644 --- a/lib/reducers/create-otp-reducer.js +++ b/lib/reducers/create-otp-reducer.js @@ -154,7 +154,7 @@ export function getInitialState(userDefinedConfig) { ] const sessionId = new URLSearchParams( - document.location.hash.split('#/')[1] + document.location.hash.split('#/')?.[1] ).get('sessionId') return {