diff --git a/apps/dcellar-web-ui/CHANGELOG.json b/apps/dcellar-web-ui/CHANGELOG.json index 03785a81..7d90ed4c 100644 --- a/apps/dcellar-web-ui/CHANGELOG.json +++ b/apps/dcellar-web-ui/CHANGELOG.json @@ -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", diff --git a/apps/dcellar-web-ui/CHANGELOG.md b/apps/dcellar-web-ui/CHANGELOG.md index 9ed4abf3..b280c2c8 100644 --- a/apps/dcellar-web-ui/CHANGELOG.md +++ b/apps/dcellar-web-ui/CHANGELOG.md @@ -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 diff --git a/apps/dcellar-web-ui/package.json b/apps/dcellar-web-ui/package.json index 83ef1d11..e3148b1a 100644 --- a/apps/dcellar-web-ui/package.json +++ b/apps/dcellar-web-ui/package.json @@ -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", diff --git a/apps/dcellar-web-ui/src/components/RenewalNotification/index.tsx b/apps/dcellar-web-ui/src/components/RenewalNotification/index.tsx index ec4ae51e..07b3c342 100644 --- a/apps/dcellar-web-ui/src/components/RenewalNotification/index.tsx +++ b/apps/dcellar-web-ui/src/components/RenewalNotification/index.tsx @@ -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);