Skip to content

Commit 2e9bde2

Browse files
committed
fixing the pretty function
1 parent e896781 commit 2e9bde2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/context/RequestContext.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ export const RequestProvider = ({ children }: { children: ReactNode }) => {
6161
setIsCopied(false);
6262
};
6363

64-
const formatJson = async () => {
64+
const formatJson = () => {
6565
try {
66-
const parsed = await JSON.parse(payload);
66+
const parsed = JSON.parse(payload);
6767
setPayload(JSON.stringify(parsed, null, 2));
6868
} catch (error) {
6969
console.error("Invalid JSON");

0 commit comments

Comments
 (0)