File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/components/SearchPage Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import RoutesEnum from "types/routes.enum";
88interface SubjectCardProps {
99 dbname : string ;
1010 dsname : string ;
11- agemin : string ;
11+ age : string ;
1212 subj : string ;
1313 parsedJson : {
1414 key : string [ ] ;
@@ -26,7 +26,7 @@ interface SubjectCardProps {
2626const SubjectCard : React . FC < SubjectCardProps > = ( {
2727 dbname,
2828 dsname,
29- agemin ,
29+ age ,
3030 subj,
3131 parsedJson,
3232 index,
@@ -52,8 +52,8 @@ const SubjectCard: React.FC<SubjectCardProps> = ({
5252
5353 // cover age string to readable format
5454 let ageDisplay = "N/A" ;
55- if ( agemin ) {
56- const ageNum = parseInt ( agemin , 10 ) / 100 ;
55+ if ( age ) {
56+ const ageNum = parseInt ( age , 10 ) / 100 ;
5757 if ( Number . isInteger ( ageNum ) ) {
5858 ageDisplay = `${ ageNum } years` ;
5959 } else {
You can’t perform that action at this time.
0 commit comments