Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dcellar-web-ui): update renewal notification time to 7 days #399

Merged
merged 2 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading