Fix 'makeSelectIsPlaying' to look at 'playing' instead of 'primary'.

## Issue
4959: Deleting MD from downloads list causes spinning icon to run forever

5077: player doesn't close when video deleted
This commit is contained in:
infinite-persistence 2021-02-25 14:24:34 +08:00 committed by Sean Yesmunt
parent 891207df3d
commit dabdc980a1

View file

@ -29,7 +29,7 @@ export const selectPlayingUri = createSelector(selectState, (state) => state.pla
export const selectPrimaryUri = createSelector(selectState, (state) => state.primaryUri);
export const makeSelectIsPlaying = (uri: string) =>
createSelector(selectPrimaryUri, (primaryUri) => primaryUri === uri);
createSelector(selectPlayingUri, (playingUri) => playingUri && playingUri.uri === uri);
export const makeSelectIsPlayerFloating = (location: UrlLocation) =>
createSelector(selectPrimaryUri, selectPlayingUri, selectClaimsByUri, (primaryUri, playingUri, claimsByUri) => {