Skip to content

Commit

Permalink
fix(remote): allows the ApproveButton component to get its port num…
Browse files Browse the repository at this point in the history
…ber from the browser (#1489)
  • Loading branch information
dgrebb authored Aug 1, 2023
1 parent 86cb7b1 commit f0651dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compare/src/components/molecules/ApproveButton.js
Original file line number Diff line number Diff line change
@@ -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...',
Expand Down

0 comments on commit f0651dc

Please sign in to comment.