We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5249a98 commit 04aa905Copy full SHA for 04aa905
1 file changed
src/components/SearchPage/SubjectCard.tsx
@@ -8,7 +8,7 @@ import RoutesEnum from "types/routes.enum";
8
interface SubjectCardProps {
9
dbname: string;
10
dsname: string;
11
- agemin: string;
+ age: string;
12
subj: string;
13
parsedJson: {
14
key: string[];
@@ -26,7 +26,7 @@ interface SubjectCardProps {
26
const SubjectCard: React.FC<SubjectCardProps> = ({
27
dbname,
28
dsname,
29
- agemin,
+ age,
30
subj,
31
parsedJson,
32
index,
@@ -52,8 +52,8 @@ const SubjectCard: React.FC<SubjectCardProps> = ({
52
53
// cover age string to readable format
54
let ageDisplay = "N/A";
55
- if (agemin) {
56
- const ageNum = parseInt(agemin, 10) / 100;
+ if (age) {
+ const ageNum = parseInt(age, 10) / 100;
57
if (Number.isInteger(ageNum)) {
58
ageDisplay = `${ageNum} years`;
59
} else {
0 commit comments