Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: lint #675

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,25 @@
"dependencies": {
"@material/material-color-utilities": "^0.3.0",
"@react-native-async-storage/async-storage": "^2.1.0",
"@react-native-community/cli": "15.1.2",
"@react-native-community/cli-platform-android": "15.1.2",
"@react-native-community/cli-platform-ios": "15.1.2",
"@react-native-community/cli": "16.0.0",
"@react-native-community/cli-platform-android": "16.0.0",
"@react-native-community/cli-platform-ios": "16.0.0",
"@react-native-community/netinfo": "^11.4.1",
"@react-native-cookies/cookies": "^6.2.1",
"@react-native-masked-view/masked-view": "^0.3.2",
"@react-native/babel-preset": "^0.76.3",
"@react-native/gradle-plugin": "^0.76.3",
"@react-native/metro-config": "^0.76.3",
"@react-native/typescript-config": "0.76.3",
"@react-navigation/drawer": "^7.0.18",
"@react-navigation/drawer": "^7.0.19",
"@react-navigation/native": "^7.0.13",
"@react-navigation/native-stack": "^7.1.14",
"@revenuecat/purchases-js": "^0.13.1",
"@sentry/react-native": "^6.3.0",
"@sentry/react-native": "^6.4.0",
"@sharcoux/slider": "8.0.6",
"@shopify/flash-list": "^1.7.2",
"@shopify/react-native-skia": "1.6.0",
"axios": "^1.7.8",
"axios": "^1.7.9",
"base-64": "^1.0.0",
"base64-js": "^1.5.1",
"big-integer": "^1.6.52",
Expand Down Expand Up @@ -121,7 +121,7 @@
"uuid": "^11.0.3",
"web-streams-polyfill": "^4.0.0",
"youtubei.js": "^11.0.1",
"zustand": "^5.0.1"
"zustand": "^5.0.2"
},
"resolutions": {
"metro": "^0.81.0"
Expand All @@ -143,7 +143,7 @@
"@types/lodash": "^4.17.13",
"@types/md5": "^2.3.5",
"@types/node": "^22.10.1",
"@types/react": "~18.3.12",
"@types/react": "~18.3.13",
"@types/react-native": "^0.73.0",
"@types/react-native-background-timer": "^2.0.2",
"@types/react-native-share-menu": "^5.0.5",
Expand All @@ -170,7 +170,7 @@
"gts": "^6.0.2",
"jest": "^29.7.0",
"metro-react-native-babel-preset": "0.77.0",
"prettier": "^3.4.1",
"prettier": "^3.4.2",
"react-native-clean-project": "^4.0.3",
"react-native-dotenv": "^3.4.11",
"react-test-renderer": "18.3.1",
Expand Down
2 changes: 1 addition & 1 deletion src/components/login/google/YTM.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const Explore = ({ ytmLogin }: Props) => {
<LoggedInPage
user={user}
logout={() => {
saveItem(StorageKeys.YTMCOOKIES, null).then(initMuse);
saveItem(StorageKeys.YTMCOOKIES, null).then(() => initMuse());
clear();
}}
/>
Expand Down
6 changes: 0 additions & 6 deletions src/components/login/google/useYTMLogin.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { get_current_user } from 'libmuse';
import { useState } from 'react';

import { museStore } from '@utils/muse';

const clearMuseCookies = () => museStore.reset();

export interface User {
channel_id: string;
handle: string | null;
Expand Down Expand Up @@ -34,9 +30,7 @@ export const useYTMLogin = () => {
if (user) {
return setUser(user);
}
clearMuseCookies();
})
.catch(clearMuseCookies)
.finally(() => setInit(true));

const init = () => {
Expand Down
Loading
Loading