From f0651dc5439cebc1445a611115b7c16f4d2074a4 Mon Sep 17 00:00:00 2001
From: Dan Grebb <dan@dgrebb.com>
Date: Tue, 1 Aug 2023 11:24:54 -0400
Subject: [PATCH] fix(remote): allows the `ApproveButton` component to get its
 port number from the browser (#1489)

---
 compare/src/components/molecules/ApproveButton.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/compare/src/components/molecules/ApproveButton.js b/compare/src/components/molecules/ApproveButton.js
index ed26f4f77..514f842ec 100644
--- a/compare/src/components/molecules/ApproveButton.js
+++ b/compare/src/components/molecules/ApproveButton.js
@@ -1,12 +1,11 @@
 import React from 'react';
 import { connect } from 'react-redux';
 import styled from 'styled-components';
-import getRemotePort from '../../../../core/util/getRemotePort';
 import { approveTest, filterTests } from '../../actions';
 import { colors, fonts } from '../../styles';
 
 const REMOTE_HOST = 'http://127.0.0.1';
-const REMOTE_PORT = getRemotePort();
+const REMOTE_PORT = location.port;
 const APPROVE_STATUS_TO_LABEL_MAP = Object.freeze({
   INITIAL: 'Approve',
   PENDING: 'Pending...',