File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22import type { VideoResource } from ' @/types/resources' ;
33
44import { useContentStore } from ' @/stores/ContentStore' ;
5- import { toFormattedDate } from ' @/service/util' ;
65import { useModalStore } from ' @/stores/ModalStore' ;
76import { BaseModal } from ' @/components/cedar-ui/modal' ;
87
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import type { ProfileResource } from '@/types/resources';
33import { API } from '@/service/api' ;
44
55export async function getProfileByName ( username : string ) : Promise < { data : ProfileResource | null } > {
6- const parsedId = parseInt ( username ) ;
7- if ( ! isNaN ( parsedId ) && parsedId . toString ( ) === username ) return getProfileById ( parsedId ) ;
6+ const parsedId = Number . parseInt ( username ) ;
7+ if ( ! Number . isNaN ( parsedId ) && parsedId . toString ( ) === username ) return getProfileById ( parsedId ) ;
88
99 const { data } = await API . get ( `/profiles/search/${ username } ` ) ;
1010 return data ?? null ;
You can’t perform that action at this time.
0 commit comments