-
Notifications
You must be signed in to change notification settings - Fork 166
LG-4258: Changing Default phone number should require multiple numbers associated with account #7095
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
LG-4258: Changing Default phone number should require multiple numbers associated with account #7095
Changes from all commits
ba5d8df
8d3e2b7
3c109c7
3f09b75
d03531a
be97890
e98bb56
df9bf81
29eb8b7
32efa09
72bccd2
ddaee10
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,7 @@ | |
| <div class="grid-row grid-gap-2"> | ||
| <div class="grid-col-fill"> | ||
| <%= PhoneFormatter.format(phone_configuration.phone) %> | ||
| <% if current_user.default_phone_configuration == phone_configuration %> | ||
| <% if current_user.default_phone_configuration == phone_configuration && MfaContext.new(current_user).phone_configurations.count > 1 %> | ||
|
||
| (<%= I18n.t('account.index.default') %>) | ||
| <% end %> | ||
| </div> | ||
|
|
||
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.
The
EditPhoneFormclass doesn't currently have great test coverage for its methods, but could we try adding some for this new method?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 agree 🙂