From 553ce44b8ef5eee34d421edaee38cd73f458ab64 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Wed, 24 Jul 2019 00:47:19 -0400 Subject: [PATCH] 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) --- src/ui/component/publishPrice/view.jsx | 4 ++-- src/ui/redux/actions/publish.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/component/publishPrice/view.jsx b/src/ui/component/publishPrice/view.jsx index 8c88dedeb..312c6dfbc 100644 --- a/src/ui/component/publishPrice/view.jsx +++ b/src/ui/component/publishPrice/view.jsx @@ -9,7 +9,7 @@ type Props = { updatePublishForm: ({}) => void, }; -function PublishText(props: Props) { +function PublishPrice(props: Props) { const { contentIsFree, fee, updatePublishForm, disabled } = props; return ( @@ -50,4 +50,4 @@ function PublishText(props: Props) { ); } -export default PublishText; +export default PublishPrice; diff --git a/src/ui/redux/actions/publish.js b/src/ui/redux/actions/publish.js index d628d390a..112a83b16 100644 --- a/src/ui/redux/actions/publish.js +++ b/src/ui/redux/actions/publish.js @@ -161,7 +161,7 @@ export const doPrepareEdit = (claim: StreamClaim, uri: string, fileInfo: FileLis const publishData: UpdatePublishFormData = { name, bid: Number(amount), - contentIsFree: !fee.amount, + contentIsFree: fee.amount === '0', author, description, fee,