Skip to content

Commit

Permalink
Merge pull request #76 from DFanso/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
DFanso authored Jan 7, 2024
2 parents 19897cb + b60beed commit bc35c3d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions client/src/components/pages/Contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const ContactPage = () => {
const [formData, setFormData] = useState({
name: "",
email: "",
phone: "",
mobileNumber: "",
message: "",
});

Expand Down Expand Up @@ -88,11 +88,11 @@ const ContactPage = () => {
<label htmlFor="phone">Mobile Number</label>
<input
type="tel"
id="phone"
id="mobileNumber"
placeholder="Enter your phone Ex: 0xxxxxxxxx"
required
onChange={handleChange}
value={formData.phone}
value={formData.mobileNumber}
/>
</div>
<div className="input-group">
Expand Down
9 changes: 5 additions & 4 deletions client/src/components/pages/Movie.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { useLoading } from "../LoadingContext.js";
import { Link } from "react-router-dom";
import Swal from "sweetalert2";
import Chat from "../Chat";
import { HttpStatusCode } from "axios";

const MovieFeedbackForm = () => {
var { id } = useParams();
Expand Down Expand Up @@ -137,11 +138,11 @@ function MoviePage() {
const feedbackResponse = await fetch(
`${process.env.REACT_APP_API_PATH}/feedbacks/movie/${id}`
);
if (!feedbackResponse.ok) {
throw new Error(`HTTP error! Status: ${feedbackResponse.status}`);
if (feedbackResponse.ok) {

const feedbackData = await feedbackResponse.json();
setFeedbacks(feedbackData);
}
const feedbackData = await feedbackResponse.json();
setFeedbacks(feedbackData);
} catch (error) {
Swal.fire({
title: "Error!",
Expand Down

1 comment on commit bc35c3d

@vercel
Copy link

@vercel vercel bot commented on bc35c3d Jan 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

cine-magic-cinema-admin – ./admin

cine-magic-cinema.vercel.app
cine-magic-cinema-admin-git-main-dfanso.vercel.app
cine-magic-cinema-admin-dfanso.vercel.app

Please sign in to comment.