Skip to content

Commit

Permalink
Merge pull request #1513 from ArielCalisaya/dev-path-4
Browse files Browse the repository at this point in the history
Update event names for feedback actions in CodeReview compo…
  • Loading branch information
alesanchezr authored Jun 21, 2024
2 parents 4494e25 + 2535ba8 commit 366c1da
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/common/components/ReviewModal/CodeReview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ function CodeReview({ isExternal, onClose, disableRate, isStudent, handleResetFl
};
reportDatalayer({
dataLayer: {
event: 'feedback_reaction',
event: 'feedback_student_reaction',
feedback_id: revisionContent?.id,
reaction: reviewRateData?.status,
reaction_comment: type === 'skip' ? '' : reviewRateData?.comment,
Expand Down
2 changes: 1 addition & 1 deletion src/common/components/ReviewModal/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function ReviewModal({ isExternal, externalFiles, isOpen, isStudent, externalDat
const rejectOrApprove = (status) => {
reportDatalayer({
dataLayer: {
event: 'feedback_action',
event: 'feedback_reject_or_approve',
action_type: status,
task_id: currentTask?.id,
user_id: user.id,
Expand Down
1 change: 0 additions & 1 deletion src/common/utils/iconDict.json

This file was deleted.

2 changes: 1 addition & 1 deletion src/js_modules/profile/Subscriptions/ButtonHandler.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function ButtonHandler({
const [isLoading, setIsLoading] = useState(false);
const isFullyPaid = subscription?.status?.toLowerCase() === 'fully_paid';
const planSlug = subscription?.plans?.[0]?.slug;
const isPlanFinancingExpired = subscription.type === 'plan_financing' && subscription.valid_until < new Date().toISOString();
const isPlanFinancingExpired = subscription?.type === 'plan_financing' && subscription?.valid_until < new Date().toISOString();

const {
getPlanOffer,
Expand Down

0 comments on commit 366c1da

Please sign in to comment.