Skip to content

Commit

Permalink
fix(dcellar-web-ui): update renewal notification time to 7 days (#399)
Browse files Browse the repository at this point in the history
* fix(dcellar-web-ui): update renewal notification time to 7 days
  • Loading branch information
devinxl authored Oct 10, 2024
1 parent 648afa0 commit 1d66e37
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
12 changes: 12 additions & 0 deletions apps/dcellar-web-ui/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"name": "dcellar-web-ui",
"entries": [
{
"version": "1.8.1",
"tag": "dcellar-web-ui_v1.8.1",
"date": "Thu, 10 Oct 2024 09:53:45 GMT",
"comments": {
"patch": [
{
"comment": "Update renewal notification time to 7 days"
}
]
}
},
{
"version": "1.8.0",
"tag": "dcellar-web-ui_v1.8.0",
Expand Down
9 changes: 8 additions & 1 deletion apps/dcellar-web-ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Change Log - dcellar-web-ui

This log was last generated on Thu, 10 Oct 2024 09:34:45 GMT and should not be manually modified.
This log was last generated on Thu, 10 Oct 2024 09:53:45 GMT and should not be manually modified.

## 1.8.1
Thu, 10 Oct 2024 09:53:45 GMT

### Patches

- Update renewal notification time to 7 days

## 1.8.0
Thu, 10 Oct 2024 09:34:45 GMT
Expand Down
2 changes: 1 addition & 1 deletion apps/dcellar-web-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dcellar-web-ui",
"version": "1.8.0",
"version": "1.8.1",
"private": false,
"scripts": {
"dev": "node ./scripts/dev.js -p 3200",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ export const RenewalNotification = ({ address }: RenewalNotificationProps) => {
const fee = nextStoreFee.plus(curExtraFee);
const isOwnerAccount = item.address.toLowerCase() === loginAccount.toLowerCase();
const lessThan7Days =
item.settleTimestamp !== 0 ? item.settleTimestamp - dayjs().unix() < 1 * 60 : false;
item.settleTimestamp !== 0
? item.settleTimestamp - dayjs().unix() < 7 * 24 * 60 * 60
: false;
const notPayNextFee = isOwnerAccount
? BigNumber(item.staticBalance).plus(bankBalance).isLessThan(fee)
: BigNumber(item.staticBalance).isLessThan(fee);
Expand Down

0 comments on commit 1d66e37

Please sign in to comment.