From 0b8b8780b1640c514f8c009c4516a5beb285384c Mon Sep 17 00:00:00 2001 From: Ionatan Wiznia Date: Mon, 11 Oct 2021 16:50:49 +0200 Subject: [PATCH] Fix output currency --- src/libs/actions/Policy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/actions/Policy.js b/src/libs/actions/Policy.js index d8bcd2589634..b4b4994ab51c 100644 --- a/src/libs/actions/Policy.js +++ b/src/libs/actions/Policy.js @@ -46,7 +46,7 @@ function getSimplifiedEmployeeList(employeeList) { * @param {String} fullPolicy.name * @param {String} fullPolicy.role * @param {String} fullPolicy.type - * @param {String} fullPolicy.value.outputCurrency + * @param {String} fullPolicy.outputCurrency * @param {Object} fullPolicy.value.employeeList * @param {String} [fullPolicy.value.avatarURL] * @returns {Object} @@ -57,7 +57,7 @@ function getSimplifiedPolicyObject(fullPolicy) { name: fullPolicy.name, role: fullPolicy.role, type: fullPolicy.type, - outputCurrency: lodashGet(fullPolicy, 'value.outputCurrency', ''), + outputCurrency: fullPolicy.outputCurrency, employeeList: getSimplifiedEmployeeList(lodashGet(fullPolicy, 'value.employeeList')), avatarURL: lodashGet(fullPolicy, 'value.avatarURL', ''), };