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