-
Notifications
You must be signed in to change notification settings - Fork 287
MNTOR-5144 - Remove deprecated hasPremium usage from shutdown banner #6354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| // Free users who haven't run a scan have no data that would be lost: | ||
| (!props.shutdownState.ranScan && !props.shutdownState.hasPremium) || | ||
| props.shutdownState.currentMoment === "ye-olden-days" || | ||
| props.countryCode !== "us" || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually don't think the countryCode prop was being used anywhere in this component, so I'm adding it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heh indeed I ended up not using it, since it was implied by the user having run a scan. We need it now if we're no longer keeping track of who ran scans though, so 👍
| // Free users who haven't run a scan have no data that would be lost: | ||
| (!props.shutdownState.ranScan && !props.shutdownState.hasPremium) || | ||
| props.shutdownState.currentMoment === "ye-olden-days" || | ||
| props.countryCode !== "us" || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heh indeed I ended up not using it, since it was implied by the user having run a scan. We need it now if we're no longer keeping track of who ran scans though, so 👍
src/app/functions/universal/user.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋
Co-authored-by: Vincent <Vinnl@users.noreply.github.com>
References:
Jira: MNTOR-5144
Figma:
Description
This PR removes the
hasPremiumlogic from the app. At this point,hasPremiumwas only being used to drive shutdown banner behavior, and is no longer needed now that the banner logic has been reduced down to a single state (post-shutdown).Screenshot (if applicable)
Not applicable.
How to test
Checklist (Definition of Done)