temp remove browse channels page and add default channel list

This commit is contained in:
Ren Amamiya
2023-04-19 17:35:54 +07:00
parent e6b6ab38e0
commit e0bad7df70
4 changed files with 36 additions and 8 deletions

View File

@@ -35,8 +35,12 @@ export const useChannelMetadata = (id: string, fallback: string) => {
}, []);
useEffect(() => {
const json = JSON.parse(fallback);
setMetadata(json);
if (typeof fallback === 'object') {
setMetadata(fallback);
} else {
const json = JSON.parse(fallback);
setMetadata(json);
}
// fetch kind 41
fetchMetadata();