Skip to content

Commit

Permalink
Handle disabled bc case in plug
Browse files Browse the repository at this point in the history
  • Loading branch information
macifell committed Dec 13, 2023
1 parent 25364e6 commit a6986da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/recognizer_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ defmodule RecognizerWeb.Router do
defp add_bc_to_session(%{query_params: %{"bc" => "true"}} = conn, _opts) do
if Recognizer.BigCommerce.enabled?() do
put_session(conn, :bc, true)
else
conn
end
end

Expand Down

0 comments on commit a6986da

Please sign in to comment.