File size: 287 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
// @flow
export const isViewingMarketingPage = (
  history: Object,
  currentUser: ?Object
) => {
  const viewing = history.location.pathname;
  const isRoot = viewing === '/';

  if (isRoot && (!currentUser || !currentUser.id)) return true;

  return viewing === '/code-of-conduct';
};