@@ -196,13 +196,13 @@ function CommunityQuestions() {
196196 value = { questionTitleText }
197197 onChange = { ( e ) => setQuestionTitleText ( e . target . value ) }
198198 placeholder = "Write question title..."
199- className = "p-2 border dark:bg-dark-tertiary border-gray-300 dark:border-gray-600 dark:text-black rounded w-full"
199+ className = "p-2 border dark:bg-dark-tertiary dark:text-white border-gray-300 dark:border-gray-600 rounded w-full"
200200 />
201201 < textarea
202202 value = { questionText }
203203 onChange = { ( e ) => setQuestionText ( e . target . value ) }
204204 rows = { 3 }
205- className = "w-full dark:bg-dark-tertiary p-2 border rounded-md dark:text-black "
205+ className = "w-full dark:bg-dark-tertiary dark:text-white p-2 border rounded-md "
206206 placeholder = "Ask a question..."
207207 />
208208 < button
@@ -234,7 +234,7 @@ function CommunityQuestions() {
234234 >
235235 < p className = "text-md font-semibold" > { question ?. title } </ p >
236236 < p className = "text-sm text-secondary dark:text-dark-text-fill" >
237- Asked by: { question ?. author ?. email }
237+ Asked by: { question ?. author ?. profile ?. name }
238238 </ p >
239239 </ li >
240240 ) ) }
@@ -249,7 +249,7 @@ function CommunityQuestions() {
249249 </ h2 >
250250 < span > { selectedQuestion ?. content } </ span >
251251 < p className = "text-sm text-secondary dark:text-dark-text-fill" >
252- Asked by { selectedQuestion ?. author ?. email }
252+ Asked by { selectedQuestion ?. author ?. profile ?. name }
253253 </ p >
254254 { loggedUser && loggedUser === selectedQuestion ?. author ?. id && (
255255 < button
@@ -285,7 +285,7 @@ function CommunityQuestions() {
285285 >
286286 < p > { answer . content } </ p >
287287 < p className = "text-sm text-secondary dark:text-white" >
288- Answered by { answer . author . email }
288+ Answered by { answer . author ?. profile ?. name }
289289 </ p >
290290 </ div >
291291
@@ -307,7 +307,6 @@ function CommunityQuestions() {
307307 </ p >
308308 ) }
309309
310- { /* Answer submission form for the logged-in user */ }
311310 { loggedUser && (
312311 < div className = "mt-4 flex items-start flex-col w-full" >
313312 < textarea
0 commit comments