bitshares / bitshares/bitshares-ui

[0.25][3.1.190618-rc2] HTLC - Problem with "Extend HTLC"

Open
#2,868 1 comment 0 reactions 1 assignee Claimed by @sschiessl-bcp View on GitHub
[1b] User Story [3] Bug [5a] Tiny
Dominant language
JavaScript
Stars
520
Forks
575
Avg merge
12h 7m
Merged PRs (30d)
5

Description

**Describe the bug**
When I want to extend HTLC and I click on "Expiration date - Two days" or "Expiration date - One week", I see the date changing from the current one to two days ahead or a week. But after updating the time of the HTLC action, I see that the value I specified was added to the previous value, and not replaced by it.

- Expiration date was "One day"
- I want to change it to "Two days", I click on "Two days"
- But I get 3 days as a result.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to [HTLC](https://staging.bitshares.org/#/htlc)
2. Click on 'Create HTLC'
3. Fill out the forms
4. Click on 'Create'
5. Go to [HTLC](https://staging.bitshares.org/#/htlc)
6. Click on 'Extend'
7. Change the "Expiration date"
8. Click on 'Update'

**Expected behavior**
See changes in the value of "Expiration date" from "One day" to "Two days", and not the summation of these values. Or a more accurate description of this feature.

**Screenshots**
![Screenshot_10](https://user-images.githubusercontent.com/17462020/60398467-2e27bd00-9b61-11e9-99d3-eb90d73381d0.jpg)
![Screenshot_11](https://user-images.githubusercontent.com/17462020/60398469-308a1700-9b61-11e9-94ce-b5d8bb0b1988.jpg)
![yf0qzfWFn5](https://user-images.githubusercontent.com/17462020/60398473-3849bb80-9b61-11e9-8f42-72883b4ba2dd.gif)
![Screenshot_12](https://user-images.githubusercontent.com/17462020/60398471-3253da80-9b61-11e9-97d3-82e8af238b3c.jpg)
![Screenshot_13](https://user-images.githubusercontent.com/17462020/60398477-3c75d900-9b61-11e9-8bdc-7ed8b65c3700.jpg)

**Desktop:**
- Windows 10
- Browser: Firefox 67.0.4

**Additional context**
Not "Add seconds to claim period", but "Change seconds in claim period"
Or change the description in the form of "Extend HTLC"

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.