chore: enable debug logs only in dev mode
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 41s

This commit is contained in:
daniyal 2025-01-04 11:33:44 +05:00
parent 3a09d4c595
commit 0d93e16f3a

View File

@ -75,7 +75,9 @@ export const NDKContextProvider = ({ children }: { children: ReactNode }) => {
}, [])
const ndk = useMemo(() => {
// localStorage.setItem('debug', '*')
if (import.meta.env.MODE === 'development') {
localStorage.setItem('debug', '*')
}
const dexieAdapter = new NDKCacheAdapterDexie({ dbName: 'sigit-db' })
dexieAdapter.locking = true
const ndk = new NDK({