refactor: fix typo in notification-center/index.tsx (#2929)
This commit is contained in:
committed by
GitHub
parent
9873baae9f
commit
eaea8e9368
@@ -91,7 +91,7 @@ function NotificationCard(props: NotificationCardProps): ReactElement {
|
|||||||
const pointerStartYRef = useRef<number | null>(null);
|
const pointerStartYRef = useRef<number | null>(null);
|
||||||
const notificationsHeightBefore = useMemo(() => {
|
const notificationsHeightBefore = useMemo(() => {
|
||||||
return heights.reduce((prev, curr, reducerIndex) => {
|
return heights.reduce((prev, curr, reducerIndex) => {
|
||||||
// Calculate offset up untill current notification
|
// Calculate offset up until current notification
|
||||||
if (reducerIndex >= heightIndex) {
|
if (reducerIndex >= heightIndex) {
|
||||||
return prev;
|
return prev;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user