From 91358cb6dcca083e5669b57be4141119ada5635e Mon Sep 17 00:00:00 2001 From: Jeeva Ramachandran Date: Tue, 17 Sep 2024 19:00:27 +0530 Subject: [PATCH] chore: handle masked api keys --- src/screens/Connectors/ConnectorUpdateAuthCreds.res | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/screens/Connectors/ConnectorUpdateAuthCreds.res b/src/screens/Connectors/ConnectorUpdateAuthCreds.res index b31eb9047..7ecd9b93e 100644 --- a/src/screens/Connectors/ConnectorUpdateAuthCreds.res +++ b/src/screens/Connectors/ConnectorUpdateAuthCreds.res @@ -2,6 +2,7 @@ let make = (~connectorInfo: ConnectorTypes.connectorPayload, ~getConnectorDetails) => { open ConnectorUtils open APIUtils + open LogicUtils open ConnectorAccountDetailsHelper let mixpanelEvent = MixpanelHook.useSendEvent() let getURL = useGetURL() @@ -59,7 +60,12 @@ let make = (~connectorInfo: ConnectorTypes.connectorPayload, ~getConnectorDetail ("connector_webhook_details", connectorInfo.connector_webhook_details), ("connector_label", connectorInfo.connector_label->JSON.Encode.string), ("metadata", connectorInfo.metadata), - ("additional_merchant_data", connectorInfo.additional_merchant_data), + ( + "additional_merchant_data", + connectorInfo.additional_merchant_data->checkEmptyJson + ? JSON.Encode.null + : connectorInfo.additional_merchant_data, + ), ]->LogicUtils.getJsonFromArrayOfJson }, ( connectorInfo.connector_webhook_details,