diff --git a/src/data/services/lms/utils.js b/src/data/services/lms/utils.js index f1c802d..e5cbbc0 100644 --- a/src/data/services/lms/utils.js +++ b/src/data/services/lms/utils.js @@ -42,7 +42,7 @@ export const get = (...args) => getAuthenticatedHttpClient().get(...args); * @param {string} url - target url * @param {object|string} body - post payload */ -export const post = (url, body) => getAuthenticatedHttpClient().post(url, stringify(body)); +export const post = (url, body = {}) => getAuthenticatedHttpClient().post(url, stringify(body)); export const client = getAuthenticatedHttpClient;