Browse Source

Merge pull request #606 from mrfelton/fix/open-channel-respect-currency

fix: honour currency when opening channel
renovate/lint-staged-8.x
Ben Woosley 7 years ago
committed by GitHub
parent
commit
b23513e796
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      app/reducers/channels.js

5
app/reducers/channels.js

@ -183,8 +183,9 @@ export const receiveChannels = (event, { channels, pendingChannels }) => dispatc
dispatch({ type: RECEIVE_CHANNELS, channels, pendingChannels })
// Send IPC event for opening a channel
export const openChannel = ({ pubkey, host, local_amt }) => dispatch => {
const localamt = btc.btcToSatoshis(local_amt)
export const openChannel = ({ pubkey, host, local_amt }) => (dispatch, getState) => {
const state = getState()
const localamt = btc.convert(state.ticker.currency, 'sats', local_amt)
dispatch(openingChannel())
dispatch(addLoadingPubkey(pubkey))

Loading…
Cancel
Save