refactor(helcim): make helcimFetch body check consistent
This commit is contained in:
parent
783459106f
commit
07e005ebfc
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ export async function helcimFetch(path, { method = 'GET', body, idempotencyKey,
|
||||||
const response = await fetch(`${HELCIM_API_BASE}${path}`, {
|
const response = await fetch(`${HELCIM_API_BASE}${path}`, {
|
||||||
method,
|
method,
|
||||||
headers,
|
headers,
|
||||||
body: body ? JSON.stringify(body) : undefined
|
body: body !== undefined ? JSON.stringify(body) : undefined
|
||||||
})
|
})
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue