From 74e6908c61267b432d068b629f9ff5b3cb49141e Mon Sep 17 00:00:00 2001 From: Jeeva Ramachandran Date: Thu, 30 Nov 2023 18:56:40 +0530 Subject: [PATCH] fix : test-live mode --- .../HSwitchLoginFlow/HyperSwitchAuthUtils.res | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/screens/login/HSwitchLoginFlow/HyperSwitchAuthUtils.res b/src/screens/login/HSwitchLoginFlow/HyperSwitchAuthUtils.res index eb2f576ac..2e79f95aa 100644 --- a/src/screens/login/HSwitchLoginFlow/HyperSwitchAuthUtils.res +++ b/src/screens/login/HSwitchLoginFlow/HyperSwitchAuthUtils.res @@ -429,14 +429,18 @@ module Header = {

{cardHeaderText->React.string}

{switch authType { | LoginWithPassword | LoginWithEmail => - !(testLiveMode->Belt.Option.getWithDefault(false)) - ? getHeaderLink( - ~prefix="New to Hyperswitch?", - ~authType=SignUP, - ~path="/register", - ~sufix="Sign up", - ) - : React.null + switch testLiveMode { + | Some(val) => + !val + ? getHeaderLink( + ~prefix="New to Hyperswitch?", + ~authType=SignUP, + ~path="/register", + ~sufix="Sign up", + ) + : React.null + | _ => React.null + } | SignUP => getHeaderLink(