Skip to content

Commit

Permalink
Fix ts error in YearView
Browse files Browse the repository at this point in the history
  • Loading branch information
dmtrKovalenko committed Jan 26, 2020
1 parent 89ebd1d commit 32a3a18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/views/Year/YearView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const YearSelection: React.FC<YearSelectionProps> = ({
const utils = useUtils();
const classes = useStyles();
const currentVariant = React.useContext(VariantContext);
const selectedYearRef = React.useRef<HTMLElement>(null);
const selectedYearRef = React.useRef<HTMLDivElement>(null);

React.useEffect(() => {
if (selectedYearRef.current && selectedYearRef.current.scrollIntoView) {
Expand Down

0 comments on commit 32a3a18

Please sign in to comment.