Skip to content

Commit

Permalink
Fix prettier formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelfangjw committed Jun 19, 2021
1 parent 2399a44 commit f0a1997
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/sicp/Sicp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ const Sicp: React.FC<SicpProps> = props => {

if (!hash) {
if (topRef.current) {
topRef.current.scrollIntoView({block: 'nearest', behavior: 'smooth'});
topRef.current.scrollIntoView({ block: 'nearest', behavior: 'smooth' });
}
return;
}

const ref = refs.current[hash];

if (ref) {
ref.scrollIntoView({block: 'nearest', behavior: 'smooth'});
ref.scrollIntoView({ block: 'nearest', behavior: 'smooth' });
}
}, [props.location.hash]);

Expand Down

0 comments on commit f0a1997

Please sign in to comment.