refactor(helcim): make helcimFetch body check consistent

This commit is contained in:
Jennie Robinson Faber 2026-04-08 21:40:53 +01:00
parent 783459106f
commit 07e005ebfc

View file

@ -51,7 +51,7 @@ export async function helcimFetch(path, { method = 'GET', body, idempotencyKey,
const response = await fetch(`${HELCIM_API_BASE}${path}`, {
method,
headers,
body: body ? JSON.stringify(body) : undefined
body: body !== undefined ? JSON.stringify(body) : undefined
})
if (!response.ok) {