Skip to content

Commit

Permalink
fix: one more occurrence
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed Oct 19, 2023
1 parent 75a21e6 commit 5a6087a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ppx/reason_react_ppx.ml
Original file line number Diff line number Diff line change
Expand Up @@ -640,8 +640,8 @@ let jsxMapper =
pattern,
expression ) ->
let () =
match (isOptional arg, pattern, default) with
| true, { ppat_desc = Ppat_constraint (_, { ptyp_desc }) }, None -> (
match (arg, pattern, default) with
| Optional _, { ppat_desc = Ppat_constraint (_, { ptyp_desc }) }, None -> (
match ptyp_desc with
| Ptyp_constr ({ txt = Lident "option" }, [ _ ]) -> ()
| _ ->
Expand Down

0 comments on commit 5a6087a

Please sign in to comment.