From 90acfefe80f320c75e313b4da733eba132f8feaf Mon Sep 17 00:00:00 2001 From: Vladislav Khorev Date: Sat, 13 Apr 2024 18:57:36 +0000 Subject: [PATCH] Fixing profile url --- src/features/ProfileAvatar/ProfileAvatar.tsx | 2 +- src/widgets/ReviewSection/ReviewSection.tsx | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/features/ProfileAvatar/ProfileAvatar.tsx b/src/features/ProfileAvatar/ProfileAvatar.tsx index 6b4d348..90c706a 100644 --- a/src/features/ProfileAvatar/ProfileAvatar.tsx +++ b/src/features/ProfileAvatar/ProfileAvatar.tsx @@ -25,7 +25,7 @@ const ProfileAvatar: React.FC = ({ ); const [isDeleting, setIsDeleting] = useState(false); const [message, setMessage] = useState(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(""); diff --git a/src/widgets/ReviewSection/ReviewSection.tsx b/src/widgets/ReviewSection/ReviewSection.tsx index 8146c62..d5b32a4 100644 --- a/src/widgets/ReviewSection/ReviewSection.tsx +++ b/src/widgets/ReviewSection/ReviewSection.tsx @@ -141,6 +141,8 @@ const ReviewSection: React.FC = ({ "12": "Декабрь", }; + const def = process.env.NEXT_PUBLIC_PROFILE_AVATAR_URL as string; + return (

@@ -177,8 +179,8 @@ const ReviewSection: React.FC = ({
Author Image
@@ -204,7 +206,7 @@ const ReviewSection: React.FC = ({ ) : (

- Оставьте комментарий первым :) + Оставьте комментарий первым

)} {loader ? (