diff --git a/src/components/planner/TransferBank.tsx b/src/components/planner/TransferBank.tsx index ad1c67844..b36e6155f 100644 --- a/src/components/planner/TransferBank.tsx +++ b/src/components/planner/TransferBank.tsx @@ -1,4 +1,4 @@ -import { FC, useState } from 'react'; +import React, { FC, useState } from 'react'; import ChevronIcon from '@/icons/ChevronIcon'; @@ -21,6 +21,15 @@ const TransferBank: FC = ({ transferCredits }) => { onClick={() => setOpen(!open)} /> +
+
+ + {/*Assumes the second digit in the second word in each course code is the number of credits it provides*/} + {transferCredits.reduce((acc, curr) => acc + parseInt(curr.split(' ')[1][1]), 0)}{' '} + Credits Taken + +
+