diff --git a/server/frontend/src/components/Dealers/PostReview.jsx b/server/frontend/src/components/Dealers/PostReview.jsx index 4c0a9420e4..02f0bce992 100644 --- a/server/frontend/src/components/Dealers/PostReview.jsx +++ b/server/frontend/src/components/Dealers/PostReview.jsx @@ -55,7 +55,7 @@ const PostReview = () => { }); const json = await res.json(); - if (json.status) { + if (json.status === 200) { window.location.href = window.location.origin+"/dealer/"+id; }