Skip to content

Commit 666222a

Browse files
committed
Refactor subjectName strings in result utility to use single quotes and remove commented G.K. entry
1 parent d32e94c commit 666222a

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

functions/src/utils/result.ts

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,94 @@
1-
import { Subject } from "types";
1+
import { Subject } from 'types';
22

33
const empthNurseryResult: Subject[] = [
44
{
5-
subjectName: "English",
5+
subjectName: 'English',
66
results: { theory: null, fullMarks: 100, other: null },
77
},
88
{
9-
subjectName: "Hindi",
9+
subjectName: 'Hindi',
1010
results: { theory: null, fullMarks: 100, other: null },
1111
},
1212
{
13-
subjectName: "Maths",
13+
subjectName: 'Maths',
1414
results: { theory: null, fullMarks: 100, other: null },
1515
},
1616
];
1717
const empthLkgResult: Subject[] = [
1818
{
19-
subjectName: "English",
19+
subjectName: 'English',
2020
results: { theory: null, fullMarks: 100, other: null },
2121
},
2222
{
23-
subjectName: "Hindi",
23+
subjectName: 'Hindi',
2424
results: { theory: null, fullMarks: 100, other: null },
2525
},
2626
{
27-
subjectName: "Maths",
28-
results: { theory: null, fullMarks: 100, other: null },
29-
},
30-
{
31-
subjectName: "G.K.",
27+
subjectName: 'Maths',
3228
results: { theory: null, fullMarks: 100, other: null },
3329
},
30+
// {
31+
// subjectName: "G.K.",
32+
// results: { theory: null, fullMarks: 100, other: null },
33+
// },
3434
];
3535

3636
const empthUkgResult: Subject[] = [
3737
{
38-
subjectName: "English",
38+
subjectName: 'English',
3939
results: { theory: null, fullMarks: 100, other: null },
4040
},
4141
{
42-
subjectName: "Hindi",
42+
subjectName: 'Hindi',
4343
results: { theory: null, fullMarks: 100, other: null },
4444
},
4545
{
46-
subjectName: "Maths",
46+
subjectName: 'Maths',
4747
results: { theory: null, fullMarks: 100, other: null },
4848
},
4949
{
50-
subjectName: "G.K.",
50+
subjectName: 'G.K.',
5151
results: { theory: null, fullMarks: 100, other: null },
5252
},
5353
];
5454

5555
const empthClassSeniorResult: Subject[] = [
5656
{
57-
subjectName: "English",
57+
subjectName: 'English',
5858
results: { theory: null, fullMarks: 100, other: null },
5959
},
6060
{
61-
subjectName: "Hindi",
61+
subjectName: 'Hindi',
6262
results: { theory: null, fullMarks: 100, other: null },
6363
},
6464
{
65-
subjectName: "Maths",
65+
subjectName: 'Maths',
6666
results: { theory: null, fullMarks: 100, other: null },
6767
},
6868
{
69-
subjectName: "Science",
69+
subjectName: 'Science',
7070
results: { theory: null, fullMarks: 100, other: null },
7171
},
7272
{
73-
subjectName: "Social Science",
73+
subjectName: 'Social Science',
7474
results: { theory: null, fullMarks: 100, other: null },
7575
},
7676
{
77-
subjectName: "GK",
77+
subjectName: 'GK',
7878
results: { theory: null, fullMarks: 100, other: null },
7979
},
8080
{
81-
subjectName: "Computer",
81+
subjectName: 'Computer',
8282
results: { theory: null, fullMarks: 100, other: null },
8383
},
8484
];
8585
export function createEmptyResultBasedOnClass(currentClass: string) {
8686
switch (currentClass) {
87-
case "Nur.":
87+
case 'Nur.':
8888
return empthNurseryResult;
89-
case "L.K.G":
89+
case 'L.K.G':
9090
return empthLkgResult;
91-
case "U.K.G":
91+
case 'U.K.G':
9292
return empthUkgResult;
9393
default:
9494
return empthClassSeniorResult;

0 commit comments

Comments
 (0)