refactor useMetadata hook and minor fixes

This commit is contained in:
Ren Amamiya
2023-04-14 08:52:53 +07:00
parent 2fced53a60
commit cb35c70351
3 changed files with 49 additions and 28 deletions

View File

@@ -18,7 +18,6 @@ import {
useContext,
useEffect,
useRef,
useState,
} from 'react';
export default function Page() {
@@ -133,9 +132,10 @@ export default function Page() {
},
undefined,
() => {
eose.current += 1;
if (eose.current > relays.length / 2) {
if (eose.current > relays.length - 7) {
router.replace('/newsfeed/following');
} else {
eose.current += 1;
}
}
);