- {
- return (acc = acc + val.messages_aggregate.aggregate.count);
- }, 0)) ||
- 0
- }
- />
+ {bodyshop && bodyshop.messagingservicesid ? (
+ {
+ return (acc = acc + val.messages_aggregate.aggregate.count);
+ }, 0)) ||
+ 0
+ }
+ />
+ ) : null}
);
}
+export default connect(mapStateToProps, null)(ChatAffixContainer);
diff --git a/client/src/pages/profile/profile.page.jsx b/client/src/pages/profile/profile.page.jsx
index f8d576d77..d4525eebb 100644
--- a/client/src/pages/profile/profile.page.jsx
+++ b/client/src/pages/profile/profile.page.jsx
@@ -6,7 +6,7 @@ export default function ProfilePage() {
return (