Skip to content
This repository was archived by the owner on Aug 1, 2025. It is now read-only.

Commit 14a5e7f

Browse files
authored
fix(notices): correctly inform the cancelled free user of lack of access to Cody (#8176)
Refs CODY-6109 <img width="712" height="326" alt="image" src="https://github.com/user-attachments/assets/4e163873-f8ae-469e-a77f-d9ea3452b459" /> ## Test plan - Test with a free user made after 25 June - Check that the message about not having access is correctly set
1 parent 402d2c3 commit 14a5e7f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

vscode/webviews/components/Notices.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ export const Notices: React.FC<NoticesProps> = ({ user, instanceNotices }) => {
9292
}
9393
// For free users, check if they have a subscription
9494
const hasSubscription =
95-
user.currentUserCodySubscription && user.currentUserCodySubscription !== null
96-
if (hasSubscription) {
95+
user.currentUserCodySubscription !== null && user.currentUserCodySubscription !== undefined
96+
if (hasSubscription && user.currentUserCodySubscription?.status !== 'CANCELED') {
9797
return CODY_DEPRECATION_MESSAGES.FREE_USER_WITH_CODY
9898
}
9999
return CODY_DEPRECATION_MESSAGES.FREE_USER_WITHOUT_CODY

0 commit comments

Comments
 (0)