We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 945ba48 commit c8150cfCopy full SHA for c8150cf
src/app/components/dashboard/ItemRow.tsx
@@ -38,8 +38,8 @@ export default function ItemRow(props: ItemRowProps) {
38
const hasUpdate = createMemo(() => {
39
const diff = new Date(props.updatedAt).getTime() - new Date(props.createdAt).getTime();
40
if (diff <= 60_000) return false;
41
- if (timeInfo().created === "" || timeInfo().updated === "") return false;
42
- return timeInfo().created !== timeInfo().updated;
+ const { created, updated } = timeInfo();
+ return created !== "" && updated !== "" && created !== updated;
43
});
44
45
return (
0 commit comments