Skip to content

Commit

Permalink
Merge branch 'develop' into issues/9053/prevent-negative-quantity-and…
Browse files Browse the repository at this point in the history
…-empty-description
  • Loading branch information
JavidSumra authored Dec 14, 2024
2 parents 650149a + c8963ad commit e55ae0c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/users_spec/UsersManage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe("Manage User", () => {
manageUserPage.verifyEditUserDetails(
"Devo",
"Districto",
"8/11/1999",
"11/08/1999",
"Female",
);
});
Expand Down
9 changes: 4 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"clsx": "^2.1.1",
"cmdk": "^1.0.4",
"cross-env": "^7.0.3",
"cypress": "^13.16.1",
"cypress": "^13.16.0",
"dayjs": "^1.11.13",
"echarts": "^5.5.1",
"echarts-for-react": "^3.0.2",
Expand Down
8 changes: 3 additions & 5 deletions src/components/Users/UserViewDetails.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { useTranslation } from "react-i18next";

import { formatDate } from "@/Utils/utils";

import { UserModel } from "./models";

interface UserViewDetailsProps {
Expand Down Expand Up @@ -77,11 +79,7 @@ export const BasicInfoDetails = ({ user }: UserViewDetailsProps) => {
<LabelValue
id="date_of_birth"
label={t("date_of_birth")}
value={
user.date_of_birth
? new Date(user.date_of_birth).toLocaleDateString()
: null
}
value={user.date_of_birth ? formatDate(user.date_of_birth) : null}
/>
</div>
</div>
Expand Down

0 comments on commit e55ae0c

Please sign in to comment.