feat: enhance terms acceptance response to include acceptance timestamp

This commit is contained in:
Marco Beretta 2025-12-07 04:04:26 +01:00
parent 4fe9e98442
commit d6d61254ad
No known key found for this signature in database
GPG key ID: D918033D8E74CC11
3 changed files with 7 additions and 3 deletions

View file

@ -1068,7 +1068,7 @@ export const useAcceptTermsMutation = (
onSuccess: (data, variables, context) => {
queryClient.setQueryData<t.TUserTermsResponse>([QueryKeys.userTerms], {
termsAccepted: true,
termsAcceptedAt: new Date().toISOString(),
termsAcceptedAt: data.termsAcceptedAt,
});
options?.onSuccess?.(data, variables, context);
},