From c98f2477f619c9d4fe9cdfb8b339577868430a37 Mon Sep 17 00:00:00 2001 From: lbaker Date: Wed, 15 Sep 2021 14:56:15 -0700 Subject: [PATCH] chore: Remove test cookie --- src/pages/futurehack-2021.js | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/pages/futurehack-2021.js b/src/pages/futurehack-2021.js index 0a08309fa..749ae4244 100644 --- a/src/pages/futurehack-2021.js +++ b/src/pages/futurehack-2021.js @@ -1,8 +1,7 @@ -import React, { useEffect } from 'react'; +import React from 'react'; import PropTypes from 'prop-types'; import { css } from '@emotion/react'; import cx from 'classnames'; -import Cookies from 'js-cookie'; import PageLayout from '../components/PageLayout'; import { Button, Icon } from '@newrelic/gatsby-theme-newrelic'; import DevSiteSeo from '../components/DevSiteSeo'; @@ -31,21 +30,6 @@ const FutureHackPage = ({ location }) => { margin-right: -${layout.contentPadding}; `; - const writeCookie = () => { - const currentEnvironment = - process.env.ENV || process.env.NODE_ENV || 'development'; - const options = { expires: 1 /* days */ }; - if (currentEnvironment !== 'development') { - options.domain = 'newrelic.com'; - } - - Cookies.set('newrelic-pack-id', 'test', options); - }; - - useEffect(() => { - writeCookie(); - }); - return ( <>