Compare commits

...

3 commits

Author SHA1 Message Date
Thomas Zarebczan
b56dc4d630
pass isSupport false for tips 2019-07-29 14:35:10 -04:00
Thomas Zarebczan
358ce68490
fix doSendtip
We added an isSupport parameter on redux side to support supports :)
2019-07-29 14:32:15 -04:00
Thomas Zarebczan
d9cc88463c
remove uri param to doSendTip
This was not being used in redux and I removed it recently.
2019-07-23 12:03:17 -04:00
2 changed files with 3 additions and 3 deletions

View file

@ -77,8 +77,8 @@ const perform = dispatch => ({
purchaseUri: (uri, costInfo, saveFile) => dispatch(doPurchaseUri(uri, costInfo, saveFile)),
deletePurchasedUri: uri => dispatch(doDeletePurchasedUri(uri)),
resolveUri: uri => dispatch(doResolveUri(uri)),
sendTip: (amount, claimId, uri, successCallback, errorCallback) =>
dispatch(doSendTip(amount, claimId, uri, successCallback, errorCallback)),
sendTip: (amount, claimId, isSupport, successCallback, errorCallback) =>
dispatch(doSendTip(amount, claimId, isSupport, successCallback, errorCallback)),
setPlayerVisible: () => dispatch(doSetPlayerVisible(true)),
stopDownload: (uri, fileInfo) => dispatch(doStopDownloadingFile(uri, fileInfo)),
startDownload: (uri, outpoint, fileInfo) => dispatch(doStartDownload(uri, outpoint, fileInfo)),

View file

@ -497,7 +497,7 @@ class FilePage extends React.PureComponent {
return;
}
sendTip(tipAmount, claim.claim_id, uri, () => {
sendTip(tipAmount, claim.claim_id, isSupport: false, () => {
this.setState({ tipAmount: 0, showTipView: false });
});
};