-
Notifications
You must be signed in to change notification settings - Fork 168
Display blocks to maturity on channel detail view. #1008
Conversation
9df2e5a to
4f6ae20
Compare
src/view/channel-detail.js
Outdated
| <DetailField name="Time Til Available"> | ||
| {store.selectedChannel.timeTilAvailable} | ||
| </DetailField> | ||
| ) : null} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this below statusLabel. Seems more natural to reading the time til available after the status.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
test/unit/helper.spec.js
Outdated
|
|
||
| it('should show NaN for undefined', () => { | ||
| const time = helpers.getTimeTilAvailable(undefined); | ||
| expect(time, 'to equal', 'NaN days and NaN hours'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably throw an Error for undefined. This should only happen if the api changed and blocksTilMaturity isn't set as expected. And we wanna get notified in that case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
fa514af to
251b621
Compare
tanx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@valentinewallace made two small changes and tested this on mainnet. Works like a charm 👌Good to merge from my side if you're ok with the changes.
…osed chan detail.
…and move field down.
a1b3404 to
71d9d55
Compare
Closes #525.
"Blocks to maturity" doesn't seem like the best copy. Any ideas for what would be better?