Adds new utility function hasReviewFacet
@@ -134,6 +134,13 @@ export function hasHolderFacet(need) {
);
}
+export function hasReviewFacet(need) {
+ return (
+ getIn(need, ["content", "facets"]) &&
+ getIn(need, ["content", "facets"]).contains(won.WON.ReviewFacetCompacted)
+ );
+}
+
export function hasSuggestedConnections(need) {
return (
get(need, "connections") &&
