Skip to content

Commit

Permalink
#21 Correct typo to show traveler image
Browse files Browse the repository at this point in the history
  • Loading branch information
SandraBergstrom committed Jun 27, 2023
1 parent 83e8183 commit 7607d02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/comments/CommentCreateForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Avatar from "../../components/Avatar";
import { axiosRes } from "../../api/axiosDefaults";

function CommentCreateForm(props) {
const { post, setPost, setComments, profileImage, profile_id } = props;
const { post, setPost, setComments, travelerImage, traveler_id } = props;
const [content, setContent] = useState("");

const handleChange = (event) => {
Expand Down Expand Up @@ -45,8 +45,8 @@ function CommentCreateForm(props) {
<Form className="mt-2" onSubmit={handleSubmit}>
<Form.Group>
<InputGroup>
<Link to={`/profiles/${profile_id}`}>
<Avatar src={profileImage} />
<Link to={`/travelers/${traveler_id}`}>
<Avatar src={travelerImage} />
</Link>
<Form.Control
className={styles.Form}
Expand Down

0 comments on commit 7607d02

Please sign in to comment.