diff --git a/plugins/BetterSpotifyIntegration/src/components/ListenAlongButton.tsx b/plugins/BetterSpotifyIntegration/src/components/ListenAlongButton.tsx index 6e5b677..f96b515 100644 --- a/plugins/BetterSpotifyIntegration/src/components/ListenAlongButton.tsx +++ b/plugins/BetterSpotifyIntegration/src/components/ListenAlongButton.tsx @@ -8,12 +8,13 @@ const SpotifyStore = findByStoreName("SpotifyStore"); const Button = findByProps("Sizes", "Looks") as any; const SpotifySyncUtil = findByProps("play", "sync"); -interface ListenAlongButtonProps { +type ListenAlongButtonProps = Partial<{ activity: any; user: any; isCurrentUser: boolean; activityButtonColor: string; -} + [key: string]: any; +}> export default function ListenAlongButton(props: ListenAlongButtonProps) { const currentPartyId = FluxUtils.useStateFromStores([SpotifyStore], () => SpotifyStore.getActivity()?.party?.id); diff --git a/plugins/BetterSpotifyIntegration/src/index.tsx b/plugins/BetterSpotifyIntegration/src/index.tsx index 10fa1f6..3b1fe85 100644 --- a/plugins/BetterSpotifyIntegration/src/index.tsx +++ b/plugins/BetterSpotifyIntegration/src/index.tsx @@ -9,7 +9,7 @@ let sectionPatch: () => void; export default { onLoad() { sectionPatch = before("default", findByName("UserProfileSection", false), ([props]) => { - if (props?.title?.includes?.("Spotify") || props.activity.type !== 2) return; + if (props?.title?.includes?.("Spotify") || props?.activity?.type !== 2) return; const spotifyElement = findInReactTree(props.children, e => e?.style?.padding === 0); const actionsIndex = spotifyElement?.children?.findIndex?.(e => e?.type?.name === "Actions");