Skip to content

Commit

Permalink
fix cancelable time nan (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
vhcsilva authored Sep 4, 2024
1 parent 545729b commit cbd1be3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function BountySettings({

const isGovernor = currentUser?.isGovernor;
const isDraftFunding = currentBounty?.isDraft || !currentBounty?.isFunded
const cancelableTime = currentBounty?.network?.cancelableTime;
const cancelableTime = +currentBounty?.network?.cancelableTime;
const isCancelable = +new Date() >= +new Date(+currentBounty.createdAt + cancelableTime);
const objViewProps = {
onEditIssue,
Expand Down

0 comments on commit cbd1be3

Please sign in to comment.