fix: accounts review
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user