remove 'amount' from doClaimSearch arguments

This commit is contained in:
Sean Yesmunt 2019-07-10 23:13:34 -04:00
parent 6ba6ba26f3
commit 87fdb8084e
2 changed files with 3 additions and 6 deletions

6
dist/bundle.es.js vendored
View file

@ -2309,7 +2309,7 @@ function doFetchChannelListMine() {
};
}
function doClaimSearch(amount = 20, options = {}) {
function doClaimSearch(options = {}) {
return dispatch => {
dispatch({
type: CLAIM_SEARCH_STARTED
@ -2336,9 +2336,7 @@ function doClaimSearch(amount = 20, options = {}) {
});
};
lbryProxy.claim_search(_extends$3({
page_size: amount
}, options)).then(success, failure);
lbryProxy.claim_search(_extends$3({}, options)).then(success, failure);
};
}

View file

@ -299,7 +299,7 @@ export function doFetchChannelListMine() {
};
}
export function doClaimSearch(amount: number = 20, options: { page?: number } = {}) {
export function doClaimSearch(options: { page_size?: number, page?: number } = {}) {
return (dispatch: Dispatch) => {
dispatch({
type: ACTIONS.CLAIM_SEARCH_STARTED,
@ -327,7 +327,6 @@ export function doClaimSearch(amount: number = 20, options: { page?: number } =
};
Lbry.claim_search({
page_size: amount,
...options,
}).then(success, failure);
};