Skip to content

Commit

Permalink
reduce fake loader model start
Browse files Browse the repository at this point in the history
  • Loading branch information
urmauur committed Jan 17, 2024
1 parent e01d3a9 commit 9fa684e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions web/containers/DropdownListSidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ export default function DropdownListSidebar() {
setTimeout(() => {
setLoader(loader + 1)
}, 250)
} else if (loader === 99) {
setLoader(99)
} else if (loader === 85) {
setLoader(85)
} else {
setLoader(loader + 1)
}
Expand Down Expand Up @@ -244,9 +244,7 @@ export default function DropdownListSidebar() {
value={x.id}
className={twMerge(x.id === selected?.id && 'bg-secondary')}
onPointerUp={() => {
if (x.id === selected?.id) {
startModel(x.id)
}
startModel(x.id)
}}
>
<div className="flex w-full justify-between">
Expand Down
4 changes: 2 additions & 2 deletions web/containers/Loader/ModelStart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export default function ModelStart() {
setTimeout(() => {
setLoader(loader + 1)
}, 250)
} else if (loader === 99) {
setLoader(99)
} else if (loader === 85) {
setLoader(85)
} else {
setLoader(loader + 1)
}
Expand Down

0 comments on commit 9fa684e

Please sign in to comment.