Skip to content

Commit

Permalink
Fixes (#361)
Browse files Browse the repository at this point in the history
* Update request for featching a release's features

* Prefill the coupon field if coupon is part of the URL
  • Loading branch information
IvyMMutiso authored Dec 12, 2024
1 parent 825e1c9 commit 4a2ce2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/pages/Register/Register.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 4a2ce2a

Please sign in to comment.