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