Skip to content

Commit

Permalink
Remove JumpTo isLive check (#12197)
Browse files Browse the repository at this point in the history
  • Loading branch information
amoore108 authored Nov 21, 2024
1 parent b192733 commit 690a548
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/app/components/JumpTo/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
/* eslint-disable react-hooks/rules-of-hooks */
/** @jsx jsx */
import { useContext, useState, useEffect } from 'react';
import { jsx } from '@emotion/react';
import { ServiceContext } from '#contexts/ServiceContext';
import useViewTracker from '#app/hooks/useViewTracker';
import useClickTrackerHandler from '#app/hooks/useClickTrackerHandler';
import Text from '#app/components/Text';
import isLive from '#app/lib/utilities/isLive';
import { EventTrackingMetadata } from '#app/models/types/eventTracking';
import { OptimizelyContext } from '@optimizely/react-sdk';
import idSanitiser from '../../lib/utilities/idSanitiser';
Expand All @@ -25,9 +23,6 @@ const JumpTo = ({ jumpToHeadings, showRelatedContentLink }: JumpToProps) => {
optimizely,
};

// TODO: Remove for release
if (isLive()) return null;

const { translations } = useContext(ServiceContext);
const [hash, setHash] = useState('');
const { jumpTo = 'Jump to' } = translations?.articlePage || {};
Expand Down

0 comments on commit 690a548

Please sign in to comment.