diff --git a/src/redux/actions/file.js b/src/redux/actions/file.js index 28ccf39..50f318f 100644 --- a/src/redux/actions/file.js +++ b/src/redux/actions/file.js @@ -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' },