getActionSummary exp

This commit is contained in:
Belen Curcio
2017-04-06 18:15:02 -03:00
parent eef64f5f1b
commit ae5bcf6900
+7 -2
View File
@@ -1,2 +1,7 @@
export const getActionSummary = (type, comment) => comment.action_summaries
.filter((a) => a.__typename === type)[0];
/**
* getActionSummary
* retrieves the action summary based on the type and the comment
*/
export const getActionSummary = (type, comment) =>
comment.action_summaries.filter(a => a.__typename === type)[0];