mirror of
https://github.com/Qortal/qortal-mobile.git
synced 2025-04-28 13:57:52 +00:00
remove logs
This commit is contained in:
parent
45a15b3823
commit
b65eaaafc6
@ -1805,7 +1805,6 @@ export async function publishGroupEncryptedResourceCase(request, event) {
|
|||||||
|
|
||||||
export async function createPollCase(request, event) {
|
export async function createPollCase(request, event) {
|
||||||
try {
|
try {
|
||||||
console.log('request', event)
|
|
||||||
const { pollName, pollDescription, pollOptions } = request.payload;
|
const { pollName, pollDescription, pollOptions } = request.payload;
|
||||||
const resCreatePoll = await _createPoll(
|
const resCreatePoll = await _createPoll(
|
||||||
{
|
{
|
||||||
|
@ -3264,7 +3264,6 @@ LocalNotifications.addListener('localNotificationActionPerformed', async (event)
|
|||||||
const initializeBackButton = () => {
|
const initializeBackButton = () => {
|
||||||
|
|
||||||
CapacitorApp.addListener('backButton', (event) => {
|
CapacitorApp.addListener('backButton', (event) => {
|
||||||
console.log('event', event)
|
|
||||||
// Prevent the app from closing on back button press
|
// Prevent the app from closing on back button press
|
||||||
executeEvent("handleMobileNativeBack", {
|
executeEvent("handleMobileNativeBack", {
|
||||||
});
|
});
|
||||||
|
@ -74,9 +74,7 @@ async function computePow(chatBytes, difficulty) {
|
|||||||
// if (!workBufferPtr) {
|
// if (!workBufferPtr) {
|
||||||
// workBufferPtr = sbrk(workBufferLength);
|
// workBufferPtr = sbrk(workBufferLength);
|
||||||
// }
|
// }
|
||||||
console.log('native')
|
|
||||||
const nonce = await NativePOW.computeProofOfWork({ chatBytes, difficulty });
|
const nonce = await NativePOW.computeProofOfWork({ chatBytes, difficulty });
|
||||||
console.log('nonce', nonce)
|
|
||||||
(hashPtr, workBufferPtr, workBufferLength, difficulty);
|
(hashPtr, workBufferPtr, workBufferLength, difficulty);
|
||||||
|
|
||||||
return { nonce, chatBytesArray };
|
return { nonce, chatBytesArray };
|
||||||
|
@ -106,7 +106,6 @@ export const AppRating = ({ app, myName, ratingCountPosition = "right" }) => {
|
|||||||
const rateFunc = async (event, chosenValue, currentValue) => {
|
const rateFunc = async (event, chosenValue, currentValue) => {
|
||||||
try {
|
try {
|
||||||
const newValue = chosenValue || currentValue
|
const newValue = chosenValue || currentValue
|
||||||
console.log('event', newValue)
|
|
||||||
if (!myName) throw new Error("You need a name to rate.");
|
if (!myName) throw new Error("You need a name to rate.");
|
||||||
if (!app?.name) return;
|
if (!app?.name) return;
|
||||||
const fee = await getFee("CREATE_POLL");
|
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.`,
|
message: `Would you like to rate this app a rating of ${newValue}?. It will create a POLL tx.`,
|
||||||
publishFee: fee.fee + " QORT",
|
publishFee: fee.fee + " QORT",
|
||||||
});
|
});
|
||||||
console.log('hasPublishedRating', hasPublishedRating)
|
|
||||||
if (hasPublishedRating === false) {
|
if (hasPublishedRating === false) {
|
||||||
const pollName = `app-library-${app.service}-rating-${app.name}`;
|
const pollName = `app-library-${app.service}-rating-${app.name}`;
|
||||||
const pollOptions = [`1, 2, 3, 4, 5, initialValue-${newValue}`];
|
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(
|
const optionIndex = pollInfo?.pollOptions.findIndex(
|
||||||
(option) => +option.optionName === +newValue
|
(option) => +option.optionName === +newValue
|
||||||
);
|
);
|
||||||
console.log('optionIndex', optionIndex, newValue)
|
|
||||||
if (isNaN(optionIndex) || optionIndex === -1)
|
if (isNaN(optionIndex) || optionIndex === -1)
|
||||||
throw new Error("Cannot find rating option");
|
throw new Error("Cannot find rating option");
|
||||||
await new Promise((res, rej) => {
|
await new Promise((res, rej) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user