quick fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user