From 68decd1b57307ad10c0b777752829a768f62f1e3 Mon Sep 17 00:00:00 2001 From: Sagar Naik Date: Fri, 1 Dec 2023 17:48:59 +0530 Subject: [PATCH] logs change --- src/screens/HyperSwitch/PaymentLogs/PaymentLogs.res | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/screens/HyperSwitch/PaymentLogs/PaymentLogs.res b/src/screens/HyperSwitch/PaymentLogs/PaymentLogs.res index 25f62e929..66fd66662 100644 --- a/src/screens/HyperSwitch/PaymentLogs/PaymentLogs.res +++ b/src/screens/HyperSwitch/PaymentLogs/PaymentLogs.res @@ -18,10 +18,10 @@ module PrettyPrintJson = { let parseJsonValue = () => { try { - let parsedValue = Window.getParsedJson(jsonToDisplay)->Js.Json.stringifyWithSpace(3) + let parsedValue = jsonToDisplay->Js.Json.parseExn->Js.Json.stringifyWithSpace(3) setParsedJson(_ => parsedValue) } catch { - | _ => setParsedJson(_ => "") + | _ => setParsedJson(_ => jsonToDisplay) } } React.useEffect1(() => {