From 34d81f3b02c9780168720d885ef7d60a6b581f02 Mon Sep 17 00:00:00 2001 From: Praful Koppalkar Date: Fri, 7 Jun 2024 18:32:31 +0530 Subject: [PATCH] fix: redirect issue --- src/orca-loader/Hyper.res | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/orca-loader/Hyper.res b/src/orca-loader/Hyper.res index 7adabb05c..22349cf94 100644 --- a/src/orca-loader/Hyper.res +++ b/src/orca-loader/Hyper.res @@ -277,11 +277,7 @@ let make = (publishableKey, options: option, analyticsInfo: optionOption.flatMap(x => x->Dict.get("confirmParams")) ->Option.getOr(Dict.make()->JSON.Encode.object) - let redirect = - payload - ->getDictFromJson - ->getDictfromDict("confirmParams") - ->getString("redirect", "if_required") + let redirect = payload->getDictFromJson->getString("redirect", "if_required") let url = confirmParams