remove the uri from the failed list if the user reattempts getting the same uri #151

Merged
akinwale merged 5 commits from purchase-uri-failures into master 2019-05-27 15:59:21 +02:00
Showing only changes of commit 95cc2bb14d - Show all commits

View file

@ -89,7 +89,7 @@ export function doPurchaseUri(uri: string, costInfo: { cost: number }, saveFile:
const { cost } = costInfo;
if (cost > balance) {
if (parseFloat(cost) > balance) {
dispatch({
type: ACTIONS.PURCHASE_URI_FAILED,
data: { uri, error: 'Insufficient credits' },