redirect buttons and api url fixes

This commit is contained in:
kurpfish
2021-08-05 16:44:49 +03:00
parent 9a55d65db1
commit ffd679a0a9
14 changed files with 61 additions and 9 deletions

View File

@ -18,7 +18,7 @@ const Candidate = () => {
const dispatch = useDispatch();
useEffect(() => {
fetchItemsForId('https://guild.craft-group.xyz/api/profile/', Number(candidateId)).then((el) =>
fetchItemsForId(`${process.env.REACT_APP_API_URL}/api/profile/`, Number(candidateId)).then((el) =>
dispatch(currentCandidate(el))
);
}, [dispatch, candidateId]);