Fixing profile url

This commit is contained in:
Vladislav Khorev 2024-04-13 18:57:36 +00:00
parent e9509e9396
commit 90acfefe80
2 changed files with 6 additions and 4 deletions

View File

@ -25,7 +25,7 @@ const ProfileAvatar: React.FC<IProfileAvatarProps> = ({
);
const [isDeleting, setIsDeleting] = useState<boolean>(false);
const [message, setMessage] = useState<boolean>(false);
const def = process.env.PROFILE_AVATAR_URLL as string;
const def = process.env.NEXT_PUBLIC_PROFILE_AVATAR_URL as string;
const [success, setSuccess] = useState<string>("");

View File

@ -141,6 +141,8 @@ const ReviewSection: React.FC<IReviewsSectionProps> = ({
"12": "Декабрь",
};
const def = process.env.NEXT_PUBLIC_PROFILE_AVATAR_URL as string;
return (
<section className="review-section">
<h3>
@ -177,8 +179,8 @@ const ReviewSection: React.FC<IReviewsSectionProps> = ({
<div className="review__author">
<img
id="author-img"
src={review.author.image}
alt="Author Image"
src={review.author.image ? review.author.image : def}
alt="Author Imagex2"
/>
<div className="review__header">
<h5 className="review__author-name">
@ -204,7 +206,7 @@ const ReviewSection: React.FC<IReviewsSectionProps> = ({
</ul>
) : (
<p className="review-section__warning">
Оставьте комментарий первым :)
Оставьте комментарий первым
</p>
)}
{loader ? (