Skip to content

Commit

Permalink
fix: fixed last activity to start from the beginning of the day gf-446 (
Browse files Browse the repository at this point in the history
#451)

Co-authored-by: Yelyzaveta Veis <[email protected]>
  • Loading branch information
Vitaliistf and liza-veis authored Sep 20, 2024
1 parent 61922a3 commit 06017bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type Properties = {
const ContributorCard = ({ contributor, onEdit }: Properties): JSX.Element => {
const currentDate = getStartOfDay(new Date());
const lastActivityDate = contributor.lastActivityDate
? new Date(contributor.lastActivityDate)
? getStartOfDay(new Date(contributor.lastActivityDate))
: null;

const daysDifference = lastActivityDate
Expand Down

0 comments on commit 06017bf

Please sign in to comment.