-
Notifications
You must be signed in to change notification settings - Fork 17
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: Social auth banner #558
Conversation
Co-Authored-By: Anton Yarmolenko <[email protected]>
if case AuthMethod.socailAuth(let method) = authMethod { | ||
socialAuthMethod = method.rawValue | ||
var postLoginData: PostLoginData? | ||
if case .socailAuth(let socialMethod) = authMethod { |
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.
socailAuth typo
socialAuth?
@@ -27,6 +27,18 @@ public enum LogistrationAction: Sendable { | |||
case register | |||
} | |||
|
|||
public struct PostLoginData: Sendable { | |||
public var authMethod: String = "" |
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.
Maybe replace var with let?
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.
LGTM🫶
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #558 +/- ##
========================================
Coverage ? 0
========================================
Files ? 0
Lines ? 0
Branches ? 0
========================================
Hits ? 0
Misses ? 0
Partials ? 0 ☔ View full report in Codecov by Sentry. |
This PR comes from edx#106 and fixes the display of the Social Auth Banner when What's new View is enabled. Prior to the fix, we were losing the Social Auth Banner because it was implemented with a
.userAuthorised
notification, which never happens for MainScreenViewModel