use string for channel bid amount
This commit is contained in:
parent
639f99555f
commit
1837cef751
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue