add parseFloat for costInfo.cost

This commit is contained in:
Akinwale Ariwodola 2019-05-26 09:45:56 +01:00
parent 071bfe9eac
commit 95cc2bb14d

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' },