-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create AUP page #29
base: main
Are you sure you want to change the base?
Create AUP page #29
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This component should be placed to /src/app/(pages)/aup/components/
instead of /src/app/(page)/components
import { Aup } from "@/models/aup"; | ||
|
||
const calculate = (aup: Aup) => { | ||
const newDate = new Date(aup?.lastUpdateTime as Date); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why create a new Date from a Date?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about if aup
is not defined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
calculate
is too generic
f39dd5a
to
e2b4760
Compare
e2b4760
to
2a4823d
Compare
2a4823d
to
1eac1e4
Compare
Quality Gate passedIssues Measures |
No description provided.