diff --git a/src/screens/HyperSwitch/APIUtils/APIUtils.res b/src/screens/HyperSwitch/APIUtils/APIUtils.res index b66e3f52d..c4ed16b9f 100644 --- a/src/screens/HyperSwitch/APIUtils/APIUtils.res +++ b/src/screens/HyperSwitch/APIUtils/APIUtils.res @@ -179,6 +179,7 @@ let getURL = ( | #INVITE | #RESEND_INVITE => `${userUrl}/user/${(userType :> string)->Js.String2.toLowerCase}` + | #SWITCH_MERCHANT => switch methodType { | Get => `${userUrl}/switch/list` diff --git a/src/screens/HyperSwitch/UserManagement/ShowUserData.res b/src/screens/HyperSwitch/UserManagement/ShowUserData.res index e5a88bd68..1f01211cb 100644 --- a/src/screens/HyperSwitch/UserManagement/ShowUserData.res +++ b/src/screens/HyperSwitch/UserManagement/ShowUserData.res @@ -12,7 +12,7 @@ module UserHeading = { let updateDetails = useUpdateMethod() let status = infoValue.status->UserRoleEntity.statusToVariantMapper - let resendInvite = async () => { + let _resendInvite = async () => { try { let url = getURL(~entityName=USERS, ~userType=#RESEND_INVITE, ~methodType=Post, ()) let body = [("user_id", userId->Js.Json.string)]->Js.Dict.fromArray->Js.Json.object_ @@ -38,14 +38,14 @@ module UserHeading = { | _ => infoValue.status->Js.String2.toUpperCase->React.string }} - -