Skip to content

Commit

Permalink
removig unnecessary constant
Browse files Browse the repository at this point in the history
  • Loading branch information
NishantBorthakur committed Jun 9, 2023
1 parent 4ef9b31 commit 362412d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gui/pages/Content/Agents/ActivityFeed.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export default function ActivityFeed({selectedRunId, selectedView}) {
const feedContainerRef = useRef(null);
const [runStatus, setRunStatus] = useState("CREATED");
const [prevFeedsLength, setPrevFeedsLength] = useState(0);
const sideBarOpen = selectedView !== '' || false;

useEffect(() => {
const text = 'Thinking';
Expand Down Expand Up @@ -129,7 +128,7 @@ export default function ActivityFeed({selectedRunId, selectedView}) {
</div>}
</div>
{feedContainerRef.current && feedContainerRef.current.scrollTop >= 1200 &&
<div className="back_to_top" onClick={scrollToTop} style={sideBarOpen ? {right:'calc(39% - 5vw)'} : {right:'39%'}}>
<div className="back_to_top" onClick={scrollToTop} style={selectedView !== '' ? {right:'calc(39% - 5vw)'} : {right:'39%'}}>
<Image width={15} height={15} src="/images/backtotop.svg" alt="back-to-top"/>
</div>}
</div>
Expand Down

0 comments on commit 362412d

Please sign in to comment.