Skip to content

Commit

Permalink
fix: redirect issue (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
rising-dragon401 committed Jun 7, 2024
1 parent 1a2ebb8 commit d3f69dd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/orca-loader/Hyper.res
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,7 @@ let make = (publishableKey, options: option<JSON.t>, analyticsInfo: option<JSON.
->Option.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
Expand Down

0 comments on commit d3f69dd

Please sign in to comment.