Skip to content

Commit

Permalink
Remove wrong JSON.stringify (#315)
Browse files Browse the repository at this point in the history
* fix(frontend): remove wrong JSON.stringify

* feat: add changeset
  • Loading branch information
guerrap authored Jul 26, 2023
1 parent eb9d6b4 commit 0570ebf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/sweet-bananas-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@carrot-kpi/react": patch
---

Remove double JSON.stringify in useDecentralizedStorageUploader hook
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const useDecentralizedStorageUploader = (): Uploader => {
Authorization: `Bearer ${pinningProxyJWT}`,
},
body: JSON.stringify({
content: JSON.stringify(btoa(content)),
content: btoa(content),
}),
},
);
Expand Down

0 comments on commit 0570ebf

Please sign in to comment.