@@ -94,20 +94,14 @@ function PrayerProgress({
9494 const netTotal = Math . max ( total - breaks . length * INTER_PRAYER_BREAK , 1 ) ;
9595 const timePerRakah = netTotal / totalRakats ;
9696 const currentRakah = Math . min ( Math . floor ( netCurrent / timePerRakah ) + 1 , totalRakats ) ;
97- const timeInRakah = Math . max ( 0 , netCurrent - ( currentRakah - 1 ) * timePerRakah ) ;
98- const isFirstOfPrayer = currentRakah % 2 === 1 ;
99- const phase = getPrayerPhase ( timeInRakah , timePerRakah , isFirstOfPrayer ) ;
10097 const remaining = Math . max ( 0 , total - current ) ;
10198
10299 return (
103100 < div className = "w-full space-y-3" >
104- { /* Rakah + phase label */ }
105- < div className = "flex items-center justify-between" >
106- < div className = "flex items-baseline gap-1" >
107- < span className = "text-mosque-gold font-bold text-base" > Rakah { currentRakah } </ span >
108- < span className = "text-gray-500 text-xs" > of { totalRakats } </ span >
109- </ div >
110- < span className = "text-xs text-gray-400 font-medium" > { phase } </ span >
101+ { /* Rakah label */ }
102+ < div className = "flex items-baseline gap-1" >
103+ < span className = "text-mosque-gold font-bold text-base" > Rakah { currentRakah } </ span >
104+ < span className = "text-gray-500 text-xs" > of { totalRakats } </ span >
111105 </ div >
112106
113107 { /* Segmented bar — one segment per rakah */ }
@@ -263,7 +257,9 @@ export default function RoomPage({ params }: { params: { id: string } }) {
263257 </ div >
264258 ) ;
265259
266- const juzLabel = room . juz_half === 1
260+ const juzLabel = room . juz_per_night === 0.25
261+ ? `Juz ${ room . juz_number } — ¼`
262+ : room . juz_half === 1
267263 ? `Juz ${ room . juz_number } — 1st half`
268264 : room . juz_half === 2
269265 ? `Juz ${ room . juz_number } — 2nd half`
0 commit comments