fix: accounts review

This commit is contained in:
Koosha Lahouti
2025-09-22 12:04:54 +03:30
parent a42da2d4c4
commit 21b7fb27ce
16 changed files with 210 additions and 157 deletions

View File

@@ -13,7 +13,7 @@ import { useToast } from '@rkheftan/harmony-ui';
import { useProfile } from '../../hooks/useProfile';
export function PersonalInformation() {
const imageBaseUrl = import.meta.env.IMAGE_BASE_URL;
const imageBaseUrl = import.meta.env.VITE_IMAGE_BASE_URL;
const { t } = useTranslation('setting');
const [isEditing, setIsEditing] = useState(false);
const [uploadedImageUrl, setUploadedImageUrl] = useState<string | null>(null);
@@ -50,9 +50,10 @@ export function PersonalInformation() {
setOriginalData(fetchedData);
setUploadedImageUrl(
profileData.profileImageUrl
? `${imageBaseUrl}${profileData.profileImageUrl}`
? `${imageBaseUrl}/${profileData.profileImageUrl}`
: null,
);
console.log(uploadedImageUrl);
setUploadedImageFile(null);
} else {
showToast({