Skip to content

Commit 3bc4745

Browse files
profile loading fix
1 parent 9954095 commit 3bc4745

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/screens/ProfileScreen.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { getCurrentUserJid, mirrorflyProfileUpdate } from '../uikitMethods';
4242
import { PROFILE_IMAGE, PROFILE_STATUS_EDIT, RECENTCHATSCREEN } from './constants';
4343

4444
const ProfileScreen = () => {
45-
const [isLoading, setIsLoading] = React.useState(true);
45+
const [isLoading, setIsLoading] = React.useState(false);
4646
const currentUserJID = getCurrentUserJid();
4747
const navigaiton = useNavigation();
4848
const userId = getUserIdFromJid(currentUserJID);
@@ -55,6 +55,7 @@ const ProfileScreen = () => {
5555
const layout = useWindowDimensions();
5656

5757
React.useEffect(() => {
58+
setIsLoading(true);
5859
if (!isEqualObjet(profile, profileDetails)) {
5960
setProfileDetails({
6061
...profile,

0 commit comments

Comments
 (0)