Commit 38e5923e authored by Bryce Johnson's avatar Bryce Johnson

Display suggested_user name from collection item.

parent 8ad8afd5
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
if (approvers && approvers.length) { if (approvers && approvers.length) {
const lastIdx = approvers.length - 1; const lastIdx = approvers.length - 1;
return approvers.reduce((memo, curr, index) => { return approvers.reduce((memo, curr, index) => {
const userDisplayName = curr; const userDisplayName = curr.name;
const newList = index !== lastIdx ? `${memo} ${userDisplayName}, ` : const newList = index !== lastIdx ? `${memo} ${userDisplayName}, ` :
`${memo} or ${userDisplayName}`; `${memo} or ${userDisplayName}`;
return newList; return newList;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment