Skip to content

Commit

Permalink
Merge pull request #9 from TharindaPrabhath/frontend-day-09-stepper
Browse files Browse the repository at this point in the history
fixed not fetching certificate data from api in production version
  • Loading branch information
TharindaPrabhath authored Oct 1, 2021
2 parents 2ea4f25 + 33eaacf commit 0645dbc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/screens/CertificateView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,12 @@ const CertificateView = () => {
const currentUrl = window.location.href;
setPageUrl(currentUrl);
const certificateIdFromUrl = currentUrl.replace(
"http://localhost:3000/certificate/view?id=",
"https://symetry-certify-frontend.herokuapp.com/certificate/view?id=",
""
);

//https://symetry-certify-frontend.herokuapp.com/certificate/view?id=
// Production -> https://symetry-certify-frontend.herokuapp.com/certificate/view?id=
// Dev -> http://localhost:3000/certificate/view?id=

setLoading(true);
fetchCertificate(certificateIdFromUrl)
Expand Down

0 comments on commit 0645dbc

Please sign in to comment.