Skip to content

Commit 9b42689

Browse files
committed
rename the api post body variable so it does not clash with the argument
1 parent 7630d20 commit 9b42689

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/api/requests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export const acceptSOW = (request, sow, accessToken) => {
271271
billing: request.billingAddress,
272272
})
273273

274-
const sow = {
274+
const pg_quote_group = {
275275
...sharedRequestData,
276276
name: request.title,
277277
description: request.description,
@@ -283,7 +283,7 @@ export const acceptSOW = (request, sow, accessToken) => {
283283
po_number: `PO${sow.identifier}`,
284284
}
285285

286-
return posting(`/quote_groups/${request.id}/accept_sow.json`, { pg_quote_group: sow }, accessToken)
286+
return posting(`/quote_groups/${request.id}/accept_sow.json`, { pg_quote_group }, accessToken)
287287
/* eslint-enable camelcase */
288288
}
289289

0 commit comments

Comments
 (0)