From d9e8e9e60f8b457f6f5240ebb055a327208478b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8r=E2=88=82=C2=A1?= Date: Tue, 6 Aug 2024 12:23:23 +0200 Subject: [PATCH] Fix JSON export double encoding --- plugins/emergency-multisig/pages/new.tsx | 4 ++-- plugins/multisig/pages/new.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/emergency-multisig/pages/new.tsx b/plugins/emergency-multisig/pages/new.tsx index d7dd33b..502df6a 100644 --- a/plugins/emergency-multisig/pages/new.tsx +++ b/plugins/emergency-multisig/pages/new.tsx @@ -80,8 +80,8 @@ export default function Create() { const exportAsJson = () => { if (!actions.length) return; - const result = encodeActionsAsJson(actions); - downloadAsFile("actions.json", JSON.stringify(result), "text/json"); + const strResult = encodeActionsAsJson(actions); + downloadAsFile("actions.json", strResult, "text/json"); }; return ( diff --git a/plugins/multisig/pages/new.tsx b/plugins/multisig/pages/new.tsx index ab24736..b7a537d 100644 --- a/plugins/multisig/pages/new.tsx +++ b/plugins/multisig/pages/new.tsx @@ -69,8 +69,8 @@ export default function Create() { const exportAsJson = () => { if (!actions.length) return; - const result = encodeActionsAsJson(actions); - downloadAsFile("actions.json", JSON.stringify(result), "text/json"); + const strResult = encodeActionsAsJson(actions); + downloadAsFile("actions.json", strResult, "text/json"); }; return (