Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(ui): use chanId to sort channel by open date
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Oct 13, 2020
1 parent d2548f6 commit b22d33a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer/reducers/channels/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ channelsSelectors.allChannelsRaw = createSelector(

const applyChannelSort = (channels, sort, sortOrder) => {
const SORTERS = {
[CHANNELS_SORT_OPEN_DATE]: c => c.index,
[CHANNELS_SORT_OPEN_DATE]: c => c.chanId,
[CHANNELS_SORT_REMOTE_BALANCE]: c =>
Number(convert('sats', 'btc', get(c, 'remoteBalance', 0))) || 0,
[CHANNELS_SORT_LOCAL_BALANCE]: c =>
Expand Down

0 comments on commit b22d33a

Please sign in to comment.