Skip to content
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

fix: only show exclamation in navbar if sms feature is enabled #383

Merged
merged 1 commit into from
Oct 5, 2020

Conversation

karrui
Copy link
Contributor

@karrui karrui commented Sep 29, 2020

In staging alt, even if the sms feature is not turned on, the exclamation will show, since the conditional is whether the user has a contact number or not. However, that results in an exclamation mark that cannot be removed:

Screenshot 2020-09-29 at 2 04 08 PM

This PR updates the conditional to only show the exclamation mark if the sms feature is available AND when the user has no contact number:

- showExclamation = !vm.user.contact
+ showExclamation = features.sms && !vm.user.contact

@karrui karrui requested a review from mantariksh October 1, 2020 04:45
@mantariksh mantariksh merged commit c46c3b3 into develop Oct 5, 2020
@karrui karrui deleted the fix/hide-!-when-sms-disabled branch November 18, 2020 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants