Skip to content

Commit

Permalink
Merge pull request #29 from aragon/f/fix-json-export
Browse files Browse the repository at this point in the history
Fix JSON export double encoding
  • Loading branch information
brickpop authored Aug 6, 2024
2 parents 5186b29 + d9e8e9e commit 39c4f54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/emergency-multisig/pages/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 2 additions & 2 deletions plugins/multisig/pages/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 39c4f54

Please sign in to comment.