fix: sending supports

Tested locally, should work a-OK now.
This commit is contained in:
Thomas Zarebczan 2019-07-24 09:41:05 -04:00 committed by Sean Yesmunt
parent f47ea91415
commit 5c4988ccde
4 changed files with 8 additions and 5 deletions

View file

@ -124,7 +124,7 @@
"jsmediatags": "^3.8.1", "jsmediatags": "^3.8.1",
"json-loader": "^0.5.4", "json-loader": "^0.5.4",
"lbry-format": "https://github.com/lbryio/lbry-format.git", "lbry-format": "https://github.com/lbryio/lbry-format.git",
"lbry-redux": "lbryio/lbry-redux#885b4679ca1918076d64af063fda15608a52a5e5", "lbry-redux": "lbryio/lbry-redux#ea56de4548480eb1a10b752b3cecbad7de2f8914",
"lbryinc": "lbryio/lbryinc#a93596c51c8fb0a226cb84df04c26a6bb60a45fb", "lbryinc": "lbryio/lbryinc#a93596c51c8fb0a226cb84df04c26a6bb60a45fb",
"lint-staged": "^7.0.2", "lint-staged": "^7.0.2",
"localforage": "^1.7.1", "localforage": "^1.7.1",

View file

@ -16,7 +16,7 @@ const select = (state, props) => ({
}); });
const perform = dispatch => ({ const perform = dispatch => ({
sendSupport: (amount, claimId) => dispatch(doSendTip(amount, claimId)), sendSupport: (amount, claimId, isSupport) => dispatch(doSendTip(amount, claimId, isSupport)),
}); });
export default connect( export default connect(

View file

@ -33,11 +33,11 @@ class WalletSendTip extends React.PureComponent<Props, State> {
} }
handleSendButtonClicked() { handleSendButtonClicked() {
const { claim, sendSupport, sendTipCallback } = this.props; const { claim, sendSupport, isSupport, sendTipCallback } = this.props;
const { claim_id: claimId } = claim; const { claim_id: claimId } = claim;
const { tipAmount } = this.state; const { tipAmount } = this.state;
sendSupport(tipAmount, claimId); sendSupport(tipAmount, claimId, isSupport);
// ex: close modal // ex: close modal
if (sendTipCallback) { if (sendTipCallback) {

View file

@ -635,5 +635,8 @@
"Publish to": "Publish to", "Publish to": "Publish to",
"Help Us Out": "Help Us Out", "Help Us Out": "Help Us Out",
"Currently, there is no automatic backup. If you lose access to these files, you will lose your credits.": "Currently, there is no automatic backup. If you lose access to these files, you will lose your credits.", "Currently, there is no automatic backup. If you lose access to these files, you will lose your credits.": "Currently, there is no automatic backup. If you lose access to these files, you will lose your credits.",
"For more details on backing up and best practices": "For more details on backing up and best practices" "For more details on backing up and best practices": "For more details on backing up and best practices",
"File Size": "File Size",
"You deposited 1 LBC as a support!": "You deposited 1 LBC as a support!",
"Refreshed!": "Refreshed!"
} }