diff --git a/src/krist/api/AuthFailed.tsx b/src/krist/api/AuthFailed.tsx index 610d672..b92438e 100644 --- a/src/krist/api/AuthFailed.tsx +++ b/src/krist/api/AuthFailed.tsx @@ -79,10 +79,7 @@ const { privatekey } = decrypted; // Perform the fetch - api.post("/addresses/alert", { - headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ privatekey }) - }) + api.post("/addresses/alert", { privatekey }) .then(res => setAlert(res.alert)) .catch(console.error) .finally(() => setLoading(false)); diff --git a/src/krist/api/transactions.ts b/src/krist/api/transactions.ts index 3ca8e0f..7543288 100644 --- a/src/krist/api/transactions.ts +++ b/src/krist/api/transactions.ts @@ -28,11 +28,8 @@ const { transaction } = await api.post( "/transactions", { - headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ - privatekey, to, amount, - metadata: metadata || undefined // Clean up empty strings - }) + privatekey, to, amount, + metadata: metadata || undefined // Clean up empty strings } );