From 5fbc5fd480ef741ef3f75034d52ab095e0f2c9be Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja <1805317@kiit.ac.in> Date: Thu, 18 Jan 2024 18:53:52 +0530 Subject: [PATCH] fix: changes --- src/components/Button.res | 2 +- .../HyperSwitch/RoutingRevamp/AdvancedRoutingUIUtils.res | 6 ++---- src/utils/PromiseUtils.res | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/components/Button.res b/src/components/Button.res index f5f3fbe2f..8863d46c7 100644 --- a/src/components/Button.res +++ b/src/components/Button.res @@ -695,7 +695,7 @@ let make = ( ? "min-w-min" : ""} ${customBackColor->Option.getWithDefault( backColor, - )} ${customRoundedClass->Belt.Option.getWithDefault(roundedClass)}` + )} ${customRoundedClass->Option.getWithDefault(roundedClass)}` let customJustifyStyle = customButtonStyle->String.includes("justify") ? "" : "justify-center" diff --git a/src/screens/HyperSwitch/RoutingRevamp/AdvancedRoutingUIUtils.res b/src/screens/HyperSwitch/RoutingRevamp/AdvancedRoutingUIUtils.res index 2f678013c..88c9dab8c 100644 --- a/src/screens/HyperSwitch/RoutingRevamp/AdvancedRoutingUIUtils.res +++ b/src/screens/HyperSwitch/RoutingRevamp/AdvancedRoutingUIUtils.res @@ -528,16 +528,14 @@ module SaveAndActivateButton = { try { let onSubmitResponse = await onSubmit(formState.values, false) let currentActivatedFromJson = - onSubmitResponse->Js.Nullable.toOption->Belt.Option.getWithDefault(Js.Json.null) + onSubmitResponse->Js.Nullable.toOption->Option.getWithDefault(Js.Json.null) let currentActivatedId = currentActivatedFromJson->LogicUtils.getDictFromJsonObject->LogicUtils.getString("id", "") let _ = await handleActivateConfiguration(Some(currentActivatedId)) } catch { | Js.Exn.Error(e) => let _err = - Js.Exn.message(e)->Belt.Option.getWithDefault( - "Failed to save and activate configuration!", - ) + Js.Exn.message(e)->Option.getWithDefault("Failed to save and activate configuration!") } }