Update profile.js

This commit is contained in:
2025-05-07 19:49:53 +05:00
committed by GitHub
parent b014c79e1b
commit 00f2229fd2

View File

@@ -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) {