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(