1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

make price a string

This commit is contained in:
Matthias Kretschmann 2019-05-23 18:33:38 +02:00
parent f230e3071c
commit 04e6bb0c72
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ const AssetModel = {
links: [], links: [],
inLanguage: null, inLanguage: null,
tags: [], tags: [],
price: null price: ''
}, },
curation: { curation: {
rating: null, rating: null,

View File

@ -19,7 +19,7 @@ interface PublishState {
dateCreated?: string dateCreated?: string
description?: string description?: string
files?: string[] files?: string[]
price?: number price?: string
author?: string author?: string
type?: AssetType type?: AssetType
license?: string license?: string
@ -44,7 +44,7 @@ export default class Publish extends Component<{}, PublishState> {
dateCreated: new Date().toISOString(), dateCreated: new Date().toISOString(),
description: '', description: '',
files: [], files: [],
price: 0, price: '0',
author: '', author: '',
type: 'dataset' as AssetType, type: 'dataset' as AssetType,
license: '', license: '',
@ -122,7 +122,7 @@ export default class Publish extends Component<{}, PublishState> {
dateCreated: new Date().toISOString(), dateCreated: new Date().toISOString(),
description: '', description: '',
files: [], files: [],
price: 0, price: '0',
author: '', author: '',
type: 'dataset' as AssetType, type: 'dataset' as AssetType,
license: '', license: '',