Skip to content

Commit

Permalink
Merge pull request #681 from dali-lab/homepage-redesign
Browse files Browse the repository at this point in the history
fix: fix bug in redirection to how does it work section
  • Loading branch information
wu-ciesielska committed Dec 19, 2023
2 parents 8f411c3 + ff42e6c commit 564b9d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/header/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ const Header = () => {
if (location.pathname === ROUTES.HOME && location.search === scrollToUrl) {
history.push(ROUTES.HOME);
setTimeout(() => {
history.push(scrollToUrl);
history.push(`/${scrollToUrl}`);
}, 0);
} else {
history.push(scrollToUrl);
history.push(`/${scrollToUrl}`);
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/screens/home/components/blog-post/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const BlogPost = (props) => {
<span className="home-page-blog-post-author">{getDateToDisplay(latestPost.date_created)}</span>
</div>
<div className="home-page-blog-post-body">
{truncateText(latestPost.body, 1000)}
{truncateText(latestPost.body, 850)}
</div>
</div>
<div className="home-page-blog-post-buttons">
Expand Down

0 comments on commit 564b9d5

Please sign in to comment.