Skip to content

Commit

Permalink
fix: remove extra consoles
Browse files Browse the repository at this point in the history
  • Loading branch information
Rassl committed Nov 24, 2024
1 parent 4585dcd commit a4a74ec
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 21 deletions.
8 changes: 0 additions & 8 deletions src/components/App/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@ export const App = () => {

queueRef.current = { nodes: [], edges: [] }

console.log(batchedData)

addNewNode(batchedData)
}
}, 3000) // Adjust delay as necessary
Expand Down Expand Up @@ -299,8 +297,6 @@ export const App = () => {
}

ws.onmessage = (event) => {
console.log('Message from server:', event.data)

const data = JSON.parse(event.data)

if (data.type === 'ping') {
Expand All @@ -319,10 +315,6 @@ export const App = () => {
ws.onerror = (error) => {
console.error('WebSocket error:', error)
}

ws.onclose = () => {
console.log('WebSocket connection closed')
}
}, [runningProjectId, setRunningProjectMessages])

useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Auth/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const AuthGuard = ({ children }: PropsWithChildren) => {

await handleAuth()
} catch (error) {
console.log(error)
console.error(error)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,6 @@ export const Body = () => {
: { to: nodeFrom.ref_id, from: selectedToNode?.ref_id }),
})

const { ref_id: id } = nodeFrom
const { ref_id: selectedId } = selectedToNode

console.log(id, selectedId)

closeHandler()
} catch (error) {
console.warn(error)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const CreateBounty: FC<Props> = ({ errMessage, handleClose }) => {
setOptions(newOptions)
}
} catch (error) {
console.log('Error from get user details: ', error)
console.error('Error from get user details: ', error)
}
}

Expand Down
6 changes: 0 additions & 6 deletions src/modules/mindset/components/LandingPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ export const LandingPage = () => {
try {
const res = await handleSubmitForm({ source: inputValue })

console.log(res)

if (res.data.project_id) {
setRunningProjectId(res.data.project_id)
}
Expand All @@ -70,15 +68,11 @@ export const LandingPage = () => {

// eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (err: any) {
console.log(err)

let errorMessage = NODE_ADD_ERROR

if (err?.status === 400) {
const res = await err.json()

console.log(res)

errorMessage = res.errorCode || res?.status || NODE_ADD_ERROR

if (res.data.ref_id) {
Expand Down

0 comments on commit a4a74ec

Please sign in to comment.