From d14006ead602ea91504fec02b7d253d3499890d6 Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja <1805317@kiit.ac.in> Date: Thu, 18 Apr 2024 16:23:52 +0530 Subject: [PATCH] fix: comments addressed --- src/Components/DropdownField.res | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Components/DropdownField.res b/src/Components/DropdownField.res index 51f47bef8..5884ca1f8 100644 --- a/src/Components/DropdownField.res +++ b/src/Components/DropdownField.res @@ -48,7 +48,8 @@ let make = ( }) switch setDisplayValue { - | Some(fun) => fun(_ => findDisplayValue.displayValue->Option.getOr(value)) + | Some(setDisplayValueFun) => + setDisplayValueFun(_ => findDisplayValue.displayValue->Option.getOr(value)) | None => () } }