From 83f96969eec135d0864a9484654a3d89536a6b3e Mon Sep 17 00:00:00 2001 From: Riddhi Agrawal Date: Wed, 17 Jan 2024 11:52:18 +0530 Subject: [PATCH] fix: comments resolved --- src/screens/HyperSwitch/UserManagement/InviteUsers.res | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/screens/HyperSwitch/UserManagement/InviteUsers.res b/src/screens/HyperSwitch/UserManagement/InviteUsers.res index 8714ad20b..ee60a6f6a 100644 --- a/src/screens/HyperSwitch/UserManagement/InviteUsers.res +++ b/src/screens/HyperSwitch/UserManagement/InviteUsers.res @@ -104,9 +104,7 @@ let make = () => { ->Js.Json.string, ), ("password", passwordFromResponse->Js.Json.string), - ] - ->Dict.fromArray - ->Js.Json.object_, + ]->LogicUtils.getJsonFromArrayOfJson, ) } } catch { @@ -131,9 +129,7 @@ let make = () => { ("email", ele->String.toLowerCase->Js.Json.string), ("name", ele->getNameFromEmail->Js.Json.string), ("role_id", role->Js.Json.string), - ] - ->Dict.fromArray - ->Js.Json.object_ + ]->LogicUtils.getJsonFromArrayOfJson inviteUserReq(body, emailPasswordsArray) })