Skip to content

Commit 75d3667

Browse files
committed
refactor: format file
1 parent c3811e5 commit 75d3667

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/utils/navigation/isViewingSameProfile.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ export const isViewingSameProfile = (username?: string | null): boolean => {
88
if (!username.trim().toLowerCase()) return false;
99

1010
const currentRoute = navigationRef.getCurrentRoute();
11-
if (!currentRoute || !(Object.values(PROFILE_TABS) as string[]).includes(currentRoute.name)) return false;
11+
if (!currentRoute || !(Object.values(PROFILE_TABS) as string[]).includes(currentRoute.name))
12+
return false;
1213

1314
const currentUsername = (currentRoute.params as { username?: string })?.username;
1415
if (!currentUsername) return false;

0 commit comments

Comments
 (0)