mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-31 07:30:32 +00:00
fix(ui): ignore empty dates in rating/love tooltips - #4653
This commit is contained in:
parent
bf7f9942c5
commit
e97298bdc6
@ -49,7 +49,7 @@ export const LoveButton = ({
|
||||
disabled={disabled || loading || record.missing}
|
||||
className={classes.love}
|
||||
title={
|
||||
record.starredAt
|
||||
record.starredAt && record.starredAt !== '0001-01-01T00:00:00Z'
|
||||
? new Date(record.starredAt).toLocaleString()
|
||||
: undefined
|
||||
}
|
||||
|
||||
@ -48,7 +48,9 @@ export const RatingField = ({
|
||||
<span
|
||||
onClick={(e) => stopPropagation(e)}
|
||||
title={
|
||||
record.ratedAt ? new Date(record.ratedAt).toLocaleString() : undefined
|
||||
record.ratedAt && record.ratedAt !== '0001-01-01T00:00:00Z'
|
||||
? new Date(record.ratedAt).toLocaleString()
|
||||
: undefined
|
||||
}
|
||||
>
|
||||
<Rating
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user