refactor: Remove console logging for error handling in useMarket and useMarketPreloader
- Eliminate console.log and console.warn statements to enhance code clarity and maintainability. - Replace error logging with comments to silently handle errors during market, stall, and product loading processes. - Streamline the preloading process by removing unnecessary logging, improving overall code readability.
This commit is contained in:
parent
786e27ab61
commit
06bcc4b91e
3 changed files with 11 additions and 47 deletions
|
|
@ -23,12 +23,9 @@ export function useMarketPreloader() {
|
|||
|
||||
const naddr = config.market.defaultNaddr
|
||||
if (!naddr) {
|
||||
console.log('No market naddr configured, skipping preload')
|
||||
return
|
||||
}
|
||||
|
||||
console.log('Preloading market data...')
|
||||
|
||||
// Connect to market
|
||||
await market.connectToMarket()
|
||||
|
||||
|
|
@ -39,10 +36,8 @@ export function useMarketPreloader() {
|
|||
marketStore.setError(null)
|
||||
|
||||
isPreloaded.value = true
|
||||
console.log('Market data preloaded successfully')
|
||||
|
||||
} catch (error) {
|
||||
console.error('Failed to preload market:', error)
|
||||
preloadError.value = error instanceof Error ? error.message : 'Failed to preload market'
|
||||
// Don't throw error, let the UI handle it gracefully
|
||||
} finally {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue