diff --git a/src/pages/Register/Register.js b/src/pages/Register/Register.js index e52ac1e5..a8db20e6 100644 --- a/src/pages/Register/Register.js +++ b/src/pages/Register/Register.js @@ -101,7 +101,8 @@ const Register = ({ history }) => { const userType = useInput('', { required: true }); const first_name = useInput('', { required: true }); const last_name = useInput(''); - const coupon_code = useInput(''); // window.env.FREE_COUPON_CODE || + const couponCode = new URLSearchParams(location.search).get('coupon_code'); + const coupon_code = useInput(couponCode); const referralCode = new URLSearchParams(location.search).get('referral_code'); const [formError, setFormError] = useState({}); const [checked, setChecked] = React.useState(false); diff --git a/src/react-query/queries/release/getReleaseFeaturesIssuesQuery.js b/src/react-query/queries/release/getReleaseFeaturesIssuesQuery.js index 04267be9..36dba3c6 100644 --- a/src/react-query/queries/release/getReleaseFeaturesIssuesQuery.js +++ b/src/react-query/queries/release/getReleaseFeaturesIssuesQuery.js @@ -5,7 +5,7 @@ export const getReleaseFeaturesIssuesQuery = async (release_uuid, displayAlert) try { const response = await httpService.makeRequest( 'get', - `${window.env.API_URL}release/feature/?release_features__release_uuid=${release_uuid}`, + `${window.env.API_URL}release/feature/?release_uuid=${release_uuid}`, ); const features = response.data; if (!_.isEmpty(features)) {