From 6b071bab2187fd5d1fd0021bd68a97bc23ed6e33 Mon Sep 17 00:00:00 2001 From: Franco Montenegro Date: Thu, 5 Aug 2021 17:44:52 -0300 Subject: [PATCH] Fix amountNeededForTakeover message for bids. --- ui/component/publishBid/index.js | 8 +++++--- ui/component/publishName/index.js | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ui/component/publishBid/index.js b/ui/component/publishBid/index.js index c570d5d7d..17ce7cf2a 100644 --- a/ui/component/publishBid/index.js +++ b/ui/component/publishBid/index.js @@ -3,23 +3,25 @@ import { makeSelectPublishFormValue, selectMyClaimForUri, selectIsResolvingPublishUris, + selectTakeOverAmount, doUpdatePublishForm, doPrepareEdit, selectBalance, } from 'lbry-redux'; import PublishPage from './view'; -const select = state => ({ +const select = (state) => ({ name: makeSelectPublishFormValue('name')(state), bid: makeSelectPublishFormValue('bid')(state), uri: makeSelectPublishFormValue('uri')(state), isResolvingUri: selectIsResolvingPublishUris(state), balance: selectBalance(state), myClaimForUri: selectMyClaimForUri(state), + amountNeededForTakeover: selectTakeOverAmount(state), }); -const perform = dispatch => ({ - updatePublishForm: value => dispatch(doUpdatePublishForm(value)), +const perform = (dispatch) => ({ + updatePublishForm: (value) => dispatch(doUpdatePublishForm(value)), prepareEdit: (claim, uri) => dispatch(doPrepareEdit(claim, uri)), }); diff --git a/ui/component/publishName/index.js b/ui/component/publishName/index.js index 67f5142fb..4159056e3 100644 --- a/ui/component/publishName/index.js +++ b/ui/component/publishName/index.js @@ -3,6 +3,7 @@ import { makeSelectPublishFormValue, selectIsStillEditing, selectMyClaimForUri, + selectTakeOverAmount, doUpdatePublishForm, doPrepareEdit, } from 'lbry-redux'; @@ -17,6 +18,7 @@ const select = (state) => ({ myClaimForUri: selectMyClaimForUri(state), activeChannelClaim: selectActiveChannelClaim(state), incognito: selectIncognito(state), + amountNeededForTakeover: selectTakeOverAmount(state), }); const perform = (dispatch) => ({