From 741525b1b0de605bafc8667bee6a4d61215606a7 Mon Sep 17 00:00:00 2001 From: zeppi Date: Tue, 4 Jan 2022 13:44:21 -0500 Subject: [PATCH] redux fixes --- ui/component/header/view.jsx | 1 + ui/modal/modalConfirmTransaction/index.js | 2 +- ui/redux/actions/content.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/component/header/view.jsx b/ui/component/header/view.jsx index ecba80983..5dc12ef76 100644 --- a/ui/component/header/view.jsx +++ b/ui/component/header/view.jsx @@ -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' diff --git a/ui/modal/modalConfirmTransaction/index.js b/ui/modal/modalConfirmTransaction/index.js index 5a5493099..f366dc0f2 100644 --- a/ui/modal/modalConfirmTransaction/index.js +++ b/ui/modal/modalConfirmTransaction/index.js @@ -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), }); diff --git a/ui/redux/actions/content.js b/ui/redux/actions/content.js index f8d593082..d9d0938ba 100644 --- a/ui/redux/actions/content.js +++ b/ui/redux/actions/content.js @@ -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}`; -- 2.45.2