88907901a1
## Issue - "https://odysee.com/LIVE:6dd" yields "Live 3 months ago" (incorrect) - "https://odysee.com/@RekietaLaw:a/LIVE:6dd" yields "Live 30 minutes ago" (correct) ## Approach Use claim ID instead of uri when searching `activeLivestreams`
14 lines
492 B
JavaScript
14 lines
492 B
JavaScript
import { connect } from 'react-redux';
|
|
import { makeSelectClaimForUri } from 'redux/selectors/claims';
|
|
import { selectActiveLivestreamForClaimId } from 'redux/selectors/livestream';
|
|
import LivestreamDateTime from './view';
|
|
|
|
const select = (state, props) => {
|
|
const claim = props.uri && makeSelectClaimForUri(props.uri)(state);
|
|
return {
|
|
claim,
|
|
activeLivestream: selectActiveLivestreamForClaimId(state, claim?.claim_id),
|
|
};
|
|
};
|
|
|
|
export default connect(select)(LivestreamDateTime);
|