move up time of rewad claim for downloads
This commit is contained in:
parent
ca4442f767
commit
526881c261
1 changed files with 3 additions and 1 deletions
|
@ -122,7 +122,6 @@ export function doUpdateLoadStatus(uri, outpoint) {
|
|||
} else if (fileInfo.completed) {
|
||||
// TODO this isn't going to get called if they reload the client before
|
||||
// the download finished
|
||||
rewards.claimEligiblePurchaseRewards()
|
||||
dispatch({
|
||||
type: types.DOWNLOADING_COMPLETED,
|
||||
data: {
|
||||
|
@ -174,6 +173,9 @@ export function doDownloadFile(uri, streamInfo) {
|
|||
outpoint: streamInfo.outpoint,
|
||||
claimId: streamInfo.claim_id,
|
||||
}).catch(() => {})
|
||||
|
||||
rewards.claimEligiblePurchaseRewards()
|
||||
|
||||
dispatch(doUpdateLoadStatus(uri, streamInfo.outpoint))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue