Skip to content

Commit

Permalink
removed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mnsrulz committed Apr 20, 2024
1 parent fcdb5fc commit b3d924a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/TickerName.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
'use client';
import { ITradeView } from "@/lib/types";
import { shortDateFormatter } from "./trades";
import dayjs from "dayjs";

export const TickerName = (p: { trade: ITradeView; }) => {
const { trade } = p;
debugger;
const dt = `${trade.contractExpiry}`.substring(0, 10); //keeping only the date part
const isYearAfter = dayjs(dt).diff(dayjs(), 'days') > 365;
const fmtDate = isYearAfter ? dayjs(dt).format('M/D/YY') : dayjs(dt).format('M/D');
Expand Down

0 comments on commit b3d924a

Please sign in to comment.