diff --git a/src/orca-loader/Hyper.res b/src/orca-loader/Hyper.res index 7adabb0..22349cf 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