File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
apps/frontend/src/app/profile Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ const ProfilePage = (props: ProfilePageProps): JSX.Element => {
33
33
const [ messageApi , contextHolder ] = message . useMessage ( ) ;
34
34
35
35
useEffect ( ( ) => {
36
- // TODO: Retrieve the user details via validate JWT token api
37
36
ValidateUser ( ) . then ( ( data : VerifyTokenResponseType ) => {
38
37
form . setFieldsValue ( {
39
38
username : data . data . username ,
@@ -69,12 +68,10 @@ const ProfilePage = (props: ProfilePageProps): JSX.Element => {
69
68
< div className = "gradient-header" > </ div >
70
69
< div className = "profile-header" >
71
70
< div className = "left-header" >
72
- { /* TODO: Replace with the first initial of username */ }
73
71
< Avatar size = { 80 } className = "avatar" >
74
72
{ username ?. charAt ( 0 ) . toUpperCase ( ) }
75
73
</ Avatar >
76
74
< div className = "name-container" >
77
- { /* TODO: Set the value in field correctly within the useEffect above and this should work */ }
78
75
< div className = "username" > { username } </ div >
79
76
< div className = "email" > { email } </ div >
80
77
</ div >
@@ -115,7 +112,6 @@ const ProfilePage = (props: ProfilePageProps): JSX.Element => {
115
112
< Form
116
113
form = { form }
117
114
onFinish = { ( values ) => {
118
- // TODO: Check password
119
115
let data = values ;
120
116
if ( ! values . password || values . password . trim ( ) === "" ) {
121
117
data = {
You can’t perform that action at this time.
0 commit comments