diff --git a/deploy-web/src/components/user/UserProfileLayout.tsx b/deploy-web/src/components/user/UserProfileLayout.tsx index 6f89f2840..1592be021 100644 --- a/deploy-web/src/components/user/UserProfileLayout.tsx +++ b/deploy-web/src/components/user/UserProfileLayout.tsx @@ -90,47 +90,48 @@ export const UserProfileLayout: React.FunctionComponent = ({ page, childr }} /> - {user?.username === username && ( - <> - {/** Only show favorites/address book/settings for current user */} - { - event(AnalyticsEvents.USER_PROFILE_FAVORITES_TAB, { - category: "profile", - label: "Click on favorites tab" - }); - }} - /> - { - event(AnalyticsEvents.USER_PROFILE_ADDRESS_BOOK_TAB, { - category: "profile", - label: "Click on address book tab" - }); - }} - /> - { - event(AnalyticsEvents.USER_PROFILE_SETTINGS_TAB, { - category: "profile", - label: "Click on settings tab" - }); - }} - /> - - )} + {/** Only show favorites/address book/settings for current user */} + {user?.username === username && [ + { + event(AnalyticsEvents.USER_PROFILE_FAVORITES_TAB, { + category: "profile", + label: "Click on favorites tab" + }); + }} + />, + { + event(AnalyticsEvents.USER_PROFILE_ADDRESS_BOOK_TAB, { + category: "profile", + label: "Click on address book tab" + }); + }} + />, + { + event(AnalyticsEvents.USER_PROFILE_SETTINGS_TAB, { + category: "profile", + label: "Click on settings tab" + }); + }} + /> + ]}