diff --git a/app/components/admin/loginComponents/pinPage.js b/app/components/admin/loginComponents/pinPage.js index 4b0d5ffa..149d4e37 100644 --- a/app/components/admin/loginComponents/pinPage.js +++ b/app/components/admin/loginComponents/pinPage.js @@ -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)) diff --git a/app/functions/boltz/rootstock/claims.js b/app/functions/boltz/rootstock/claims.js index 64eec1f8..54aa9baf 100644 --- a/app/functions/boltz/rootstock/claims.js +++ b/app/functions/boltz/rootstock/claims.js @@ -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; diff --git a/app/functions/nwc/backgroundNofifications.js b/app/functions/nwc/backgroundNofifications.js index d3444ec4..47f5b1b7 100644 --- a/app/functions/nwc/backgroundNofifications.js +++ b/app/functions/nwc/backgroundNofifications.js @@ -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 { diff --git a/app/functions/nwc/wallet.js b/app/functions/nwc/wallet.js index 7e5545fc..e64e8090 100644 --- a/app/functions/nwc/wallet.js +++ b/app/functions/nwc/wallet.js @@ -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; diff --git a/app/functions/spark/payments.js b/app/functions/spark/payments.js index 38b5bf9f..ce9eef68 100644 --- a/app/functions/spark/payments.js +++ b/app/functions/spark/payments.js @@ -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 = { diff --git a/app/functions/spark/restore.js b/app/functions/spark/restore.js index 435be82d..492cbe8f 100644 --- a/app/functions/spark/restore.js +++ b/app/functions/spark/restore.js @@ -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); diff --git a/context-store/notificationManager.js b/context-store/notificationManager.js index e7c60fd1..8b720e81 100644 --- a/context-store/notificationManager.js +++ b/context-store/notificationManager.js @@ -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); diff --git a/context-store/sparkContext.js b/context-store/sparkContext.js index 91772f82..28f4b75b 100644 --- a/context-store/sparkContext.js +++ b/context-store/sparkContext.js @@ -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) { diff --git a/context-store/webViewContext.js b/context-store/webViewContext.js index 68ed63bd..b179ba1a 100644 --- a/context-store/webViewContext.js +++ b/context-store/webViewContext.js @@ -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); diff --git a/db/initializeFirebase.js b/db/initializeFirebase.js index 29703734..6bdf5c0c 100644 --- a/db/initializeFirebase.js +++ b/db/initializeFirebase.js @@ -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);