From 5f33ea2e3100d648dd66b41a499c49116a37363a Mon Sep 17 00:00:00 2001 From: PhilReact Date: Mon, 25 Nov 2024 09:01:55 +0200 Subject: [PATCH] remove logs --- src/background-cases.ts | 1 - src/components/Apps/AppRating.tsx | 3 --- 2 files changed, 4 deletions(-) diff --git a/src/background-cases.ts b/src/background-cases.ts index 84a7151..c3ffcfe 100644 --- a/src/background-cases.ts +++ b/src/background-cases.ts @@ -775,7 +775,6 @@ export async function registerNameCase(request, event) { } export async function createPollCase(request, event) { try { - console.log('request', event) const { pollName, pollDescription, pollOptions } = request.payload; const resCreatePoll = await _createPoll( { diff --git a/src/components/Apps/AppRating.tsx b/src/components/Apps/AppRating.tsx index 1cd6c18..a1f3c98 100644 --- a/src/components/Apps/AppRating.tsx +++ b/src/components/Apps/AppRating.tsx @@ -106,7 +106,6 @@ export const AppRating = ({ app, myName, ratingCountPosition = "right" }) => { const rateFunc = async (event, chosenValue, currentValue) => { try { const newValue = chosenValue || currentValue - console.log('event', newValue) if (!myName) throw new Error("You need a name to rate."); if (!app?.name) return; const fee = await getFee("CREATE_POLL"); @@ -115,7 +114,6 @@ export const AppRating = ({ app, myName, ratingCountPosition = "right" }) => { message: `Would you like to rate this app a rating of ${newValue}?. It will create a POLL tx.`, publishFee: fee.fee + " QORT", }); - console.log('hasPublishedRating', hasPublishedRating) if (hasPublishedRating === false) { const pollName = `app-library-${app.service}-rating-${app.name}`; const pollOptions = [`1, 2, 3, 4, 5, initialValue-${newValue}`]; @@ -153,7 +151,6 @@ export const AppRating = ({ app, myName, ratingCountPosition = "right" }) => { const optionIndex = pollInfo?.pollOptions.findIndex( (option) => +option.optionName === +newValue ); - console.log('optionIndex', optionIndex, newValue) if (isNaN(optionIndex) || optionIndex === -1) throw new Error("Cannot find rating option"); await new Promise((res, rej) => {