Skip to content

Commit

Permalink
fix: comments addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
Pritish Budhiraja committed Apr 23, 2024
1 parent 10c3f3f commit af61102
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/Components/DropdownField.res
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,11 @@ let make = (
if isDisplayValueVisible {
let findDisplayValue =
options
->Array.find((ele: optionType) => ele.value === value)
->Array.find(ele => ele.value === value)
->Option.getOr(defaultValue)

switch setDisplayValue {
| Some(setDisplayValueFun) =>
setDisplayValueFun(_ => findDisplayValue.displayValue->Option.getOr(value))
| Some(fun) => fun(_ => findDisplayValue.displayValue->Option.getOr(value))
| None => ()
}
}
Expand Down
4 changes: 1 addition & 3 deletions src/Utilities/RecoilAtoms.res
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ let userEmailAddress = Recoil.atom("userEmailAddress", defaultFieldValues)
let userPhoneNumber = Recoil.atom(
"userPhoneNumber",
{
value: "",
isValid: None,
errorString: "",
...defaultFieldValues,
countryCode: "",
},
)
Expand Down

0 comments on commit af61102

Please sign in to comment.