fix(lint): fix some lint issues

This commit is contained in:
lemmyMwaura
2024-08-06 19:25:04 +03:00
parent 3c64359597
commit fb719a9383
5 changed files with 23 additions and 17 deletions
@@ -77,19 +77,20 @@ export const useValidateSecretPassword = ({
hashedHex: string;
userPassword: string;
}) => {
return useQuery({
enabled: Boolean(sharedSecretId) && Boolean(userPassword),
queryKey: `validateSecretPass-${sharedSecretId}`,
queryFn: async () => {
const { data, isLoading, refetch } = await apiRequest.post<ValidateSecretPassword>(
return useQuery(
[`validateSecretPass-${sharedSecretId}`],
async () => {
const { data } = await apiRequest.post<ValidateSecretPassword>(
`/api/v1/secret-sharing/public/${sharedSecretId}/validate`,
{
hashedHex,
password: userPassword
}
);
return { data, isLoading, refetch }
return data;
},
{
enabled: Boolean(sharedSecretId) && Boolean(userPassword),
}
})
)
}