From 1837cef751bfcc36e5bcc1d8abe22c8590c221bb Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 31 Oct 2018 13:11:32 -0400 Subject: [PATCH] use string for channel bid amount --- src/renderer/redux/actions/content.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/renderer/redux/actions/content.js b/src/renderer/redux/actions/content.js index 81fdcecda..94d7c680d 100644 --- a/src/renderer/redux/actions/content.js +++ b/src/renderer/redux/actions/content.js @@ -23,6 +23,7 @@ import { doNotify, makeSelectChannelForClaimUri, parseURI, + creditsToString, } from 'lbry-redux'; import { makeSelectClientSetting, selectosNotificationsEnabled } from 'redux/selectors/settings'; import setBadge from 'util/setBadge'; @@ -373,7 +374,7 @@ export function doFetchChannelListMine() { }; } -export function doCreateChannel(name, amount) { +export function doCreateChannel(name: string, amount: number) { return dispatch => { dispatch({ type: ACTIONS.CREATE_CHANNEL_STARTED, @@ -382,7 +383,7 @@ export function doCreateChannel(name, amount) { return new Promise((resolve, reject) => { Lbry.channel_new({ channel_name: name, - amount: parseFloat(amount), + amount: creditsToString(amount), }).then( newChannelClaim => { const channelClaim = newChannelClaim;