Skip to content

Commit

Permalink
fix(dcellar-web-ui): expiration time unit is ms
Browse files Browse the repository at this point in the history
  • Loading branch information
devinxl committed Jul 27, 2023
1 parent 18d3301 commit d5b55b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dcellar-web-ui/src/store/slices/persist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export const checkSpOffChainMayExpired =
const allSps = getState().sp.allSps ?? [];
const { offchain, sps } = config;
const curTime = getUtcZeroTimestamp();
const mayExpired = offchain.some((sp) => sp.expirationTime < curTime + 60 * 60 * 24);
const mayExpired = offchain.some((sp) => sp.expirationTime < curTime + 60 * 60 * 24 * 1000);
const hasNewSp = allSps.some(
(s) => !sps.includes(s.operatorAddress) && !faultySps.includes(s.operatorAddress),
);
Expand Down

0 comments on commit d5b55b5

Please sign in to comment.