fix useProfileQuery queryKey
This commit is contained in:
parent
854a5c13c4
commit
ebfd5570e9
@ -6,7 +6,7 @@ import { useMutation, useQuery } from '@tanstack/react-query';
|
||||
export const useProfileQuery = ({ telegramId }: ProfileProps) => {
|
||||
return useQuery({
|
||||
queryFn: () => getProfile({ telegramId }),
|
||||
queryKey: telegramId ? ['profile', 'telegramId', telegramId] : ['profile'],
|
||||
queryKey: telegramId ? ['profile', 'telegramId', telegramId, 'get'] : ['profile', 'get'],
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user