update user component

This commit is contained in:
2023-12-04 11:49:52 +07:00
parent 48ab123850
commit 21e758ec13
2 changed files with 19 additions and 19 deletions

View File

@@ -8,9 +8,9 @@ export function useProfile(pubkey: string, embed?: string) {
const queryClient = useQueryClient();
const { ndk } = useNDK();
const {
status,
isFetching,
isError,
data: user,
error,
} = useQuery({
queryKey: ['user', pubkey],
queryFn: async () => {
@@ -44,5 +44,5 @@ export function useProfile(pubkey: string, embed?: string) {
retry: 2,
});
return { status, user, error };
return { isFetching, isError, user };
}