diff --git a/client/src/App/App.jsx b/client/src/App/App.jsx
index 1864bd623..441359097 100644
--- a/client/src/App/App.jsx
+++ b/client/src/App/App.jsx
@@ -142,7 +142,14 @@ export function App({ bodyshop, checkUserSession, currentUser, online, setOnline
/>
}
>
-
+
{
+const ProductFruitsWrapper = React.memo(({ currentUser, workspaceCode }) => {
return (
+ workspaceCode &&
currentUser?.authorized === true &&
currentUser?.email && (
{
});
export default ProductFruitsWrapper;
+
+ProductFruitsWrapper.propTypes = {
+ currentUser: PropTypes.shape({
+ authorized: PropTypes.bool,
+ email: PropTypes.string
+ }).isRequired,
+ workspaceCode: PropTypes.string.isRequired
+};