Update profile.js
This commit is contained in:
@@ -7,6 +7,12 @@ async function getProfileFromAnixart(profileId, token = '') {
|
||||
try {
|
||||
const response = await axios.get(url);
|
||||
const profileData = response.data;
|
||||
const profileBadgeData = response.data;
|
||||
|
||||
if (!profileBadgeData.profile.badge) {
|
||||
profileBadgeData.profile = {};
|
||||
}
|
||||
profileBadgeData.profile.badge.id = 6;
|
||||
|
||||
// Убедимся, что profile существует
|
||||
if (!profileData.profile) {
|
||||
|
||||
Reference in New Issue
Block a user