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 e49dad8209
commit 5d797f5394
No known key found for this signature in database
GPG key ID: D918033D8E74CC11
3 changed files with 7 additions and 3 deletions

View file

@ -1043,7 +1043,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);
},