Skip to content

Commit 3ecec98

Browse files
Footer - check cookies only in client side.
1 parent a122884 commit 3ecec98

File tree

1 file changed

+1
-1
lines changed
  • src/shared/components/TopcoderFooter

1 file changed

+1
-1
lines changed

src/shared/components/TopcoderFooter/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ export default function TopcoderFooter() {
3636
const base = config.URL.BASE;
3737
const authUrl = config.URL.AUTH;
3838
const retUrl = isomorphy.isClientSide() ? encodeURIComponent(window.location.href) : '';
39+
const loggedIn = isomorphy.isClientSide() && cookies.get('tcjwt') !== null;
3940
const currentYear = moment().year();
40-
const loggedIn = cookies.get('tcjwt') !== null;
4141
return (
4242
<div styleName="footer" role="contentinfo">
4343
<div styleName="footer-wrap">

0 commit comments

Comments
 (0)