File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
frontend/src/app/components Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,6 @@ <h2 class="text-2xl md:text-3xl font-black text-gray-900 dark:text-white trackin
106106 class ="ph ph-arrow-square-out "> </ i > </ a >
107107 }
108108 </ div >
109- </ div >
110109 </ td >
111110 < td class ="px-6 py-4 whitespace-nowrap text-sm text-gray-600 dark:text-gray-300 "> {{ job.role }}</ td >
112111 < td class ="hidden md:table-cell px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-400 "> {{
@@ -227,7 +226,7 @@ <h2 class="text-2xl md:text-3xl font-black text-gray-900 dark:text-white trackin
227226 class ="px-3 py-1.5 rounded-lg text-[11px] font-semibold bg-indigo-600 text-white hover:bg-indigo-500 disabled:opacity-50 disabled:cursor-not-allowed ">
228227 {{ startingInterviewId() === job.id ? 'Starting...' : 'Prepare for Interview' }}
229228 </ button >
230- < div class ="relative inline-block ">
229+ < div class ="relative inline-block ">
231230 < button (click) ="toggleMenu(job.id, $event) "
232231 class ="text-gray-400 hover:text-gray-600 dark:hover:text-white p-1 rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors ">
233232 < i class ="ph ph-dots-three-vertical text-xl "> </ i >
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ <h3 class="text-xl font-bold text-gray-900 dark:text-white">Final Report</h3>
6060 @if (isLoading()) {
6161 < div class ="text-sm text-gray-500 "> Loading interview questions...</ div >
6262 } @else {
63- < h3 class ="text-lg font-semibold text-gray-900 dark:text-white "> {{ questions()[currentIndex()]?.question }}</ h3 >
63+ < h3 class ="text-lg font-semibold text-gray-900 dark:text-white "> {{ currentQuestionText }}</ h3 >
6464
6565 @if (lastScore() !== null) {
6666 < div class ="rounded-xl border border-indigo-200 dark:border-indigo-800/50 bg-indigo-50 dark:bg-indigo-900/20 p-3 space-y-1 ">
Original file line number Diff line number Diff line change @@ -57,6 +57,12 @@ export class InterviewPrepComponent implements OnInit {
5757 }
5858 }
5959
60+
61+ get currentQuestionText ( ) {
62+ const current = this . questions ( ) [ this . currentIndex ( ) ] ;
63+ return current ? current . question : '' ;
64+ }
65+
6066 async submitAnswer ( ) {
6167 if ( this . isSubmitting ( ) || ! this . answer ( ) . trim ( ) ) return ;
6268
You can’t perform that action at this time.
0 commit comments