about summary refs log tree commit diff
path: root/src/view/screens/Profile.tsx
diff options
context:
space:
mode:
authorMohammadReza Mahmoudi <rezamahmudy1@gmail.com>2023-05-31 03:12:22 +0330
committerGitHub <noreply@github.com>2023-05-30 18:42:22 -0500
commit442d453600a5dce98a2c197c94c9fb3d3a7fba78 (patch)
treedf33e5cb6eeddf6ceacab46f05b6089895442dfd /src/view/screens/Profile.tsx
parent5d0a3e6c653c42ef9b8f45292534f5d520173e93 (diff)
downloadvoidsky-442d453600a5dce98a2c197c94c9fb3d3a7fba78.tar.zst
Fix profile load issue + enhancement of profile isCurrent style (#764)
* fix profile isActive issue

* fix myProfile load issue when visiting other profiles first

* fix lint issues

* change currentRouteName to currentRouteInfo
Diffstat (limited to 'src/view/screens/Profile.tsx')
-rw-r--r--src/view/screens/Profile.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/view/screens/Profile.tsx b/src/view/screens/Profile.tsx
index 77e3743e5..a34ceb32c 100644
--- a/src/view/screens/Profile.tsx
+++ b/src/view/screens/Profile.tsx
@@ -47,6 +47,10 @@ export const ProfileScreen = withAuthRequired(
     )
     useSetTitle(combinedDisplayName(uiState.profile))
 
+    useEffect(() => {
+      setHasSetup(false)
+    }, [route.params.name])
+
     useFocusEffect(
       React.useCallback(() => {
         let aborted = false