mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
MinTip: commentron now uses float
This commit is contained in:
parent
0e0e2359f2
commit
9305ec2d24
2 changed files with 0 additions and 16 deletions
|
@ -1419,15 +1419,6 @@ export const doUpdateCreatorSettings = (channelClaim: ChannelClaim, settings: Pe
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const BTC_SATOSHIS = 100000000;
|
|
||||||
|
|
||||||
if (settings.min_tip_amount_comment !== undefined) {
|
|
||||||
settings.min_tip_amount_comment *= BTC_SATOSHIS;
|
|
||||||
}
|
|
||||||
if (settings.min_tip_amount_super_chat !== undefined) {
|
|
||||||
settings.min_tip_amount_super_chat *= BTC_SATOSHIS;
|
|
||||||
}
|
|
||||||
|
|
||||||
return Comments.setting_update({
|
return Comments.setting_update({
|
||||||
channel_name: channelClaim.name,
|
channel_name: channelClaim.name,
|
||||||
channel_id: channelClaim.claim_id,
|
channel_id: channelClaim.claim_id,
|
||||||
|
|
|
@ -4,8 +4,6 @@ import { handleActions } from 'util/redux-utils';
|
||||||
import { BLOCK_LEVEL } from 'constants/comment';
|
import { BLOCK_LEVEL } from 'constants/comment';
|
||||||
import { isURIEqual } from 'lbry-redux';
|
import { isURIEqual } from 'lbry-redux';
|
||||||
|
|
||||||
const BTC_SATOSHIS = 100000000;
|
|
||||||
|
|
||||||
const defaultState: CommentsState = {
|
const defaultState: CommentsState = {
|
||||||
commentById: {}, // commentId -> Comment
|
commentById: {}, // commentId -> Comment
|
||||||
byId: {}, // ClaimID -> list of fetched comment IDs.
|
byId: {}, // ClaimID -> list of fetched comment IDs.
|
||||||
|
@ -991,11 +989,6 @@ export default handleActions(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Both partial and full update will always include these,
|
|
||||||
// so safe to always re-compute without accidentally double-converting.
|
|
||||||
settingsByChannelId[channelId].min_tip_amount_comment /= BTC_SATOSHIS;
|
|
||||||
settingsByChannelId[channelId].min_tip_amount_super_chat /= BTC_SATOSHIS;
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...state,
|
...state,
|
||||||
settingsByChannelId,
|
settingsByChannelId,
|
||||||
|
|
Loading…
Add table
Reference in a new issue