fix: price on update
Would show 0 / LBC for free claims, instead of free. The downside here is that it shows 0 LBC as the default fee if someone chooses one. We'd need to make the default a separate variable. Also updated the publishprice function name (copy paste error)
This commit is contained in:
parent
2fa934981f
commit
553ce44b8e
2 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ type Props = {
|
||||||
updatePublishForm: ({}) => void,
|
updatePublishForm: ({}) => void,
|
||||||
};
|
};
|
||||||
|
|
||||||
function PublishText(props: Props) {
|
function PublishPrice(props: Props) {
|
||||||
const { contentIsFree, fee, updatePublishForm, disabled } = props;
|
const { contentIsFree, fee, updatePublishForm, disabled } = props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -50,4 +50,4 @@ function PublishText(props: Props) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default PublishText;
|
export default PublishPrice;
|
||||||
|
|
|
@ -161,7 +161,7 @@ export const doPrepareEdit = (claim: StreamClaim, uri: string, fileInfo: FileLis
|
||||||
const publishData: UpdatePublishFormData = {
|
const publishData: UpdatePublishFormData = {
|
||||||
name,
|
name,
|
||||||
bid: Number(amount),
|
bid: Number(amount),
|
||||||
contentIsFree: !fee.amount,
|
contentIsFree: fee.amount === '0',
|
||||||
author,
|
author,
|
||||||
description,
|
description,
|
||||||
fee,
|
fee,
|
||||||
|
|
Loading…
Add table
Reference in a new issue