fixed profile initials

This commit is contained in:
ivic00
2024-11-03 18:42:13 +01:00
parent b35871aed8
commit f398109d69
2 changed files with 7 additions and 5 deletions

View File

@ -125,8 +125,8 @@ const MyProfile = () => {
}}
>
<Text style={styles.pfpTxt}>
{user?.email?.at(0)}
{user?.email?.at(1)}
{profileData?.firstName?.at(0)}
{profileData?.lastName?.at(0)}
</Text>
</View>
)}
@ -229,7 +229,9 @@ const MyProfile = () => {
}}
visible={showDeleteDialog}
onDismiss={handleHideDeleteDialog}
onConfirm={() => {console.log('delete account here')}}
onConfirm={() => {
console.log("delete account here");
}}
/>
</ScrollView>
);

View File

@ -113,8 +113,8 @@ const HeaderTemplate = (props: {
) : (
<View style={styles.pfp} center>
<Text style={styles.pfpTxt}>
{user?.email?.at(0)}
{user?.email?.at(1)}
{profileData?.firstName?.at(0)}
{profileData?.lastName?.at(0)}
</Text>
</View>
)}