Skip to content

Commit

Permalink
fix: the remaining time display is abnormal
Browse files Browse the repository at this point in the history
  • Loading branch information
devchenyan committed Aug 22, 2024
1 parent e9eab5e commit daf58b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const DAORecord = ({
epochParser(withdrawEpoch || currentEpoch)
)

const leftEpochs = Math.max(compensationEndEpochValue - currentEpochValue, 0)
const leftEpochs = Math.max((compensationEndEpochValue || 0) - currentEpochValue, 0)

let leftHours = ''
let leftDays = ''
Expand Down

1 comment on commit daf58b8

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 10506143342

Please sign in to comment.