chore: remove repeated console log that could slow down the fe on state update

This commit is contained in:
Louis 2024-08-16 23:19:19 +07:00
parent 176fbc6a99
commit b86dad6d44
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2
2 changed files with 0 additions and 6 deletions

View File

@ -15,7 +15,6 @@ const ListContainer = ({ children }: Props) => {
const currentScrollTop = event.currentTarget.scrollTop
if (prevScrollTop.current > currentScrollTop) {
console.debug('User is manually scrolling up')
isUserManuallyScrollingUp.current = true
} else {
const currentScrollTop = event.currentTarget.scrollTop
@ -23,7 +22,6 @@ const ListContainer = ({ children }: Props) => {
const clientHeight = event.currentTarget.clientHeight
if (currentScrollTop + clientHeight >= scrollHeight) {
console.debug('Scrolled to the bottom')
isUserManuallyScrollingUp.current = false
}
}

View File

@ -72,9 +72,6 @@ export default function useRecommendedModel() {
// if we don't have [lastUsedModelId], then we can just use the first model
// in the downloaded list
if (!lastUsedModelId) {
console.debug(
`No last used model, using first model in list ${models[0].id}}`
)
setRecommendedModel(models[0])
return
}
@ -90,7 +87,6 @@ export default function useRecommendedModel() {
return
}
console.debug(`Using last used model ${lastUsedModel.id}`)
setRecommendedModel(lastUsedModel)
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [getAndSortDownloadedModels, activeThread])