remove uneeded debug logs
This commit is contained in:
@@ -83,11 +83,6 @@ export default function PinPage() {
|
||||
comparisonHash = loginSettings.savedPin;
|
||||
}
|
||||
|
||||
console.log(
|
||||
loginSettings,
|
||||
sha256Hash(JSON.stringify(loginSettings.enteredPin)),
|
||||
comparisonHash,
|
||||
);
|
||||
if (loginSettings.isBiometricEnabled) return;
|
||||
if (
|
||||
comparisonHash === sha256Hash(JSON.stringify(loginSettings.enteredPin))
|
||||
|
||||
@@ -58,7 +58,6 @@ export async function refundRootstockSubmarineSwap(swap, signer) {
|
||||
);
|
||||
const refundData = await refundRes.json();
|
||||
|
||||
console.log(refundData, 'boltz refund data');
|
||||
if (refundData.error) {
|
||||
await persistRefundError(id, refundData.error);
|
||||
return false;
|
||||
|
||||
@@ -635,7 +635,6 @@ export default async function handleNWCBackgroundEvent(notificationData) {
|
||||
|
||||
await filteredEvents.forEach(async (event, index) => {
|
||||
const selectedNWCAccount = nwcAccounts[event.pubkey];
|
||||
console.log(selectedNWCAccount, 'SELECTED NWC ACCOUNT');
|
||||
if (!selectedNWCAccount) return null;
|
||||
|
||||
try {
|
||||
|
||||
@@ -6,7 +6,6 @@ export let nwcWallet = null;
|
||||
export const initializeNWCWallet = async () => {
|
||||
try {
|
||||
if (nwcWallet) {
|
||||
console.log('using cahced wallet', nwcWallet);
|
||||
return { isConnected: true };
|
||||
}
|
||||
const NWCMnemoinc = (await retrieveData(NWC_SECURE_STORE_MNEMOINC)).value;
|
||||
|
||||
@@ -238,7 +238,6 @@ export const sparkPaymenWrapper = async ({
|
||||
'Error when sending lightning payment',
|
||||
);
|
||||
|
||||
console.log(lightningPayResponse, 'lightniing pay response');
|
||||
const data = lightningPayResponse.paymentResponse;
|
||||
|
||||
// check if lightning payment used LN or handled over spark
|
||||
@@ -340,7 +339,6 @@ export const sparkPaymenWrapper = async ({
|
||||
onChainPayResponse.error || 'Error when sending bitcoin payment',
|
||||
);
|
||||
|
||||
console.log(onChainPayResponse, 'on-chain pay response');
|
||||
const data = onChainPayResponse.response;
|
||||
|
||||
const tx = {
|
||||
|
||||
@@ -730,8 +730,6 @@ export const updateSparkTxStatus = async (
|
||||
unpaidInvoicesByAmount.get(amount).push(invoice);
|
||||
});
|
||||
|
||||
console.log('pending tx list', savedTxs);
|
||||
|
||||
// For large pending sets, fetch the recent transfers once and look ids up
|
||||
// locally instead of one getSingleTxDetails request per pending tx. Only
|
||||
// 25 transfers since this runs every ~10s and each transfer is encrypted.
|
||||
@@ -792,7 +790,6 @@ export const updateSparkTxStatus = async (
|
||||
updatedTxs,
|
||||
sparkUpdates.includesGift ? 'fullUpdate-waitBalance' : 'txStatusUpdate',
|
||||
);
|
||||
console.log(`Updated transactions:`, updatedTxs);
|
||||
return { updated: updatedTxs, shouldCheck: false };
|
||||
} catch (error) {
|
||||
console.error('Error in spark restore:', error);
|
||||
|
||||
@@ -112,13 +112,9 @@ export const PushNotificationProvider = ({ children }) => {
|
||||
};
|
||||
|
||||
const registerNotificationHandlers = () => {
|
||||
addNotificationReceivedListener(notification => {
|
||||
console.log('Notification received in foreground', notification);
|
||||
});
|
||||
addNotificationReceivedListener(() => {});
|
||||
|
||||
addNotificationResponseReceivedListener(response => {
|
||||
console.log('Notification opened by device user', response.notification);
|
||||
});
|
||||
addNotificationResponseReceivedListener(() => {});
|
||||
};
|
||||
|
||||
return (
|
||||
@@ -184,7 +180,6 @@ async function registerForPushNotificationsAsync() {
|
||||
}
|
||||
|
||||
const pushToken = await getExpoPushTokenAsync(options);
|
||||
console.log(pushToken);
|
||||
return { didWork: true, token: pushToken.data };
|
||||
} catch (err) {
|
||||
console.error('UNEXPECTED ERROR IN FUNCTION', err);
|
||||
|
||||
@@ -684,7 +684,6 @@ const SparkWalletProvider = ({ children }) => {
|
||||
});
|
||||
}
|
||||
|
||||
console.log(lastAddedTx, txs);
|
||||
if (!lastAddedTx) return;
|
||||
|
||||
let parsedDetails = {};
|
||||
@@ -699,7 +698,6 @@ const SparkWalletProvider = ({ children }) => {
|
||||
details: parsedDetails,
|
||||
};
|
||||
const details = parsedTx.details || {};
|
||||
console.log(parsedTx, details, from, 'testing notifications');
|
||||
|
||||
if (parsedTx.paymentStatus === 'pending') {
|
||||
// Run a tx status check. Will delay toast message
|
||||
@@ -717,7 +715,6 @@ const SparkWalletProvider = ({ children }) => {
|
||||
tx.tempId === parsedTx.sparkID &&
|
||||
tx.paymentStatus === 'completed',
|
||||
);
|
||||
console.log(updated, didUpdateStatus);
|
||||
if (!didUpdateStatus) {
|
||||
console.log('Payment is pending, show navigation once confimred');
|
||||
return;
|
||||
@@ -1972,7 +1969,6 @@ const SparkWalletProvider = ({ children }) => {
|
||||
);
|
||||
|
||||
for (const address of depositAddresses) {
|
||||
console.log('Checking deposit address:', address);
|
||||
if (!address) continue;
|
||||
|
||||
const [exploraData, unclaimedUtxos, allUtxos] = await Promise.all([
|
||||
@@ -2026,8 +2022,6 @@ const SparkWalletProvider = ({ children }) => {
|
||||
});
|
||||
}
|
||||
|
||||
console.log('Unclaimed UTXOs for address:', address, unclaimedUtxos);
|
||||
|
||||
if (!unclaimedUtxos.didWork || !unclaimedUtxos.utxos.length) continue;
|
||||
|
||||
for (const utxo of unclaimedUtxos.utxos) {
|
||||
|
||||
@@ -930,7 +930,6 @@ export const WebViewProvider = ({ children }) => {
|
||||
sequence,
|
||||
timestamp,
|
||||
};
|
||||
console.log('sending message to webview', action, payload);
|
||||
|
||||
try {
|
||||
if (encrypt && aesKeyRef.current) {
|
||||
@@ -1130,7 +1129,6 @@ export const WebViewProvider = ({ children }) => {
|
||||
console.warn('Dropping plaintext message received post-handshake');
|
||||
return;
|
||||
}
|
||||
console.log('receiving message from webview', content);
|
||||
|
||||
if (content.type === 'security:csp-violation') {
|
||||
console.error('CSP VIOLATION DETECTED:', content);
|
||||
|
||||
@@ -42,10 +42,6 @@ export async function initializeFirebase(publicKey, privateKey) {
|
||||
}
|
||||
|
||||
const currentUser = firebaseAuth.currentUser;
|
||||
console.log('current auth', {
|
||||
currentUser,
|
||||
publicKey,
|
||||
});
|
||||
|
||||
if (currentUser && currentUser?.uid === publicKey) {
|
||||
return currentUser;
|
||||
@@ -60,10 +56,8 @@ export async function initializeFirebase(publicKey, privateKey) {
|
||||
publicKey,
|
||||
);
|
||||
if (!token) throw new Error('Not able to get custom token from backend');
|
||||
console.log('custom sign in token from backend', token);
|
||||
|
||||
const customSignIn = await signInWithCustomToken(firebaseAuth, token);
|
||||
console.log('custom sign in user id', customSignIn.user);
|
||||
return customSignIn;
|
||||
} catch (error) {
|
||||
console.error('Error initializing Firebase:', error);
|
||||
|
||||
Reference in New Issue
Block a user