Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Conversation

@valentinewallace
Copy link
Contributor

Closes #525.

"Blocks to maturity" doesn't seem like the best copy. Any ideas for what would be better?

@valentinewallace valentinewallace requested a review from tanx March 12, 2019 23:54
@valentinewallace valentinewallace force-pushed the show-force-close-time branch 2 times, most recently from 9df2e5a to 4f6ae20 Compare March 14, 2019 19:29
<DetailField name="Time Til Available">
{store.selectedChannel.timeTilAvailable}
</DetailField>
) : null}
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed


it('should show NaN for undefined', () => {
const time = helpers.getTimeTilAvailable(undefined);
expect(time, 'to equal', 'NaN days and NaN hours');
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@tanx tanx force-pushed the show-force-close-time branch from fa514af to 251b621 Compare March 16, 2019 07:18
Copy link
Contributor

@tanx tanx left a 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.

@valentinewallace valentinewallace merged commit 688ac05 into master Mar 18, 2019
@valentinewallace valentinewallace deleted the show-force-close-time branch March 18, 2019 23:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants