redux fixes (#7400)
This commit is contained in:
parent
ba2caf4eb2
commit
7a100ec022
3 changed files with 3 additions and 2 deletions
|
@ -251,6 +251,7 @@ const Header = (props: Props) => {
|
|||
aria-label={__('Home')}
|
||||
className="header__navigation-item header__navigation-item--lbry"
|
||||
onClick={() => {
|
||||
// here use state.router.location.pathname
|
||||
if (history.location.pathname === '/') window.location.reload();
|
||||
}}
|
||||
// @if TARGET='app'
|
||||
|
|
|
@ -6,7 +6,7 @@ import ModalConfirmTransaction from './view';
|
|||
import { selectActiveChannelClaim, selectIncognito } from 'redux/selectors/app';
|
||||
|
||||
const select = (state, props) => ({
|
||||
claim: selectClaimForUri(state, props.destination)(state),
|
||||
claim: selectClaimForUri(state, props.destination),
|
||||
activeChannelClaim: selectActiveChannelClaim(state),
|
||||
incognito: selectIncognito(state),
|
||||
});
|
||||
|
|
|
@ -221,7 +221,7 @@ export function doPlayUri(
|
|||
export function savePosition(uri: string, position: number) {
|
||||
return (dispatch: Dispatch, getState: () => any) => {
|
||||
const state = getState();
|
||||
const claim = selectClaimForUri(state, uri)(state);
|
||||
const claim = selectClaimForUri(state, uri);
|
||||
const { claim_id: claimId, txid, nout } = claim;
|
||||
const outpoint = `${txid}:${nout}`;
|
||||
|
||||
|
|
Loading…
Reference in a new issue