diff --git a/src/app/client/src/app/modules/learn/components/course-consumption/consent-pii/consent-pii.component.spec.ts b/src/app/client/src/app/modules/learn/components/course-consumption/consent-pii/consent-pii.component.spec.ts
index cdcfedc2755571826c8cef059831b9db3bcf3325..403d9f97354489f2b39f6c9d189c6233efb774c7 100644
--- a/src/app/client/src/app/modules/learn/components/course-consumption/consent-pii/consent-pii.component.spec.ts
+++ b/src/app/client/src/app/modules/learn/components/course-consumption/consent-pii/consent-pii.component.spec.ts
@@ -193,21 +193,6 @@ describe('ConsentPiiComponent', () => {
     expect(component.getUserConsent).toHaveBeenCalled();
     expect(component.showConsentPopup).toBe(false);
   });
-  it('should update User Consent', () => {
-    const userService = TestBed.get(UserService);
-    const toastService = TestBed.get(ToasterService);
-    userService._userProfile = MockData.userProfile;
-    component.collection = MockData.collection;
-    const csUserService = TestBed.get('CS_USER_SERVICE');
-    spyOn(csUserService, 'updateConsent').and.returnValue(of(MockData.updateConsentResponse));
-    spyOn(toastService, 'error');
-    spyOn(component, 'getUserConsent');
-    component.updateUserConsent(false);
-    expect(csUserService.updateConsent).toHaveBeenCalled();
-    expect(toastService.error).toHaveBeenCalledWith('Your data settings are not submitted!');
-    expect(component.getUserConsent).toHaveBeenCalled();
-    expect(component.showConsentPopup).toBe(false);
-  });
 
   it('should not update User Consent', () => {
     const userService = TestBed.get(UserService);
diff --git a/src/app/client/src/app/modules/learn/components/course-consumption/consent-pii/consent-pii.component.ts b/src/app/client/src/app/modules/learn/components/course-consumption/consent-pii/consent-pii.component.ts
index cc8474997413063118c4fb9db8753f000bfb2128..0794a28c579e6b6672a6304192e7b771d9d7a8d0 100644
--- a/src/app/client/src/app/modules/learn/components/course-consumption/consent-pii/consent-pii.component.ts
+++ b/src/app/client/src/app/modules/learn/components/course-consumption/consent-pii/consent-pii.component.ts
@@ -151,11 +151,7 @@ export class ConsentPiiComponent implements OnInit {
     this.csUserService.updateConsent(request, { apiPath: '/learner/user/v1' })
       .pipe(takeUntil(this.unsubscribe))
       .subscribe(() => {
-        if (isActive) {
-          this.toasterService.success(_.get(this.resourceService, 'messages.smsg.dataSettingSubmitted'));
-        } else {
-          this.toasterService.error(_.get(this.resourceService, 'messages.fmsg.dataSettingNotSubmitted'));
-        }
+        this.toasterService.success(_.get(this.resourceService, 'messages.smsg.dataSettingSubmitted'));
         this.getUserConsent();
       }, error => {
         this.toasterService.error(_.get(this.resourceService, 'messages.emsg.m0005'));