diff --git a/src/pages/overall/overall.ts b/src/pages/overall/overall.ts index e1c9c14..f355423 100644 --- a/src/pages/overall/overall.ts +++ b/src/pages/overall/overall.ts @@ -1,6 +1,7 @@ import {Component, Prop, Vue} from 'vue-property-decorator'; import GraphOverall from '@/pages/overall/graph-overall/graph-overall'; import {Course} from '@/components/app/app'; +import {GPAUtils} from '@/utils/gpa-utils'; @Component({ components: {GraphOverall} @@ -95,4 +96,18 @@ export default class Overall extends Vue rows: rows } } + + public getGPA() + { + let gpa = GPAUtils.getGPA(this.courses); + let result = '' + gpa.gpa; + + // Not accurate + if (!gpa.accurate) + { + result = `(${result})`; + } + + return result; + } }