add parseFloat for costInfo.cost
This commit is contained in:
parent
071bfe9eac
commit
95cc2bb14d
1 changed files with 1 additions and 1 deletions
|
@ -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' },
|
||||
|
|
Loading…
Reference in a new issue