quick fixes

This commit is contained in:
2025-10-06 13:33:25 -05:00
parent 45db283bc5
commit 49bbd1611c
4 changed files with 12 additions and 13 deletions
@@ -27,7 +27,9 @@ interface SpotifySheetProps {
const SpotifySheet: React.FC<SpotifySheetProps> = ({ opened, onClose }) => {
const { roles } = useAuth();
const isAdmin = roles?.includes('Admin') || false;
const spotify = useSpotify();
if (!isAdmin || !spotify) return null;
const {
isAuthenticated,
login,
@@ -39,7 +41,7 @@ const SpotifySheet: React.FC<SpotifySheetProps> = ({ opened, onClose }) => {
setActiveDevice,
isLoading,
error,
} = useSpotify();
} = spotify;
if (!isAdmin) return null;