Skip to content

Commit

Permalink
should work
Browse files Browse the repository at this point in the history
  • Loading branch information
Ko71k committed Nov 25, 2024
1 parent 4cdcbf6 commit 107b87e
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions public/components/EventContentPage/EventContentPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,11 @@ export class EventContentPage {
async _renderEvent(event) {
const possession = await this.checkPossession();
const myFavorites = await this.checkFavorites();
console.log(myFavorites);
console.log(event.id);
const mySubsribtions = await this.checkSubscribe();
console.log(typeof event.id);
console.log(typeof myFavorites);
console.log(typeof mySubsribtions);

const inSub = mySubsribtions.includes(event.id);
let inSub = mySubsribtions.includes(event.id);

const isFavorite = myFavorites.includes(event.id);
console.log(isFavorite);
let isFavorite = myFavorites.includes(event.id);

const eventAuthor = document.createElement('div');
eventAuthor.className = 'event__author';
Expand Down Expand Up @@ -221,8 +215,6 @@ export class EventContentPage {
} else {
favoritesAddButton.textContent = 'Добавить в избранные';
};

favoritesAddButton.textContent = 'Добавить в избранные';
favoritesAddButton.addEventListener("click", async () => {
const request = {
headers: {
Expand Down

0 comments on commit 107b87e

Please sign in to comment.