Skip to content

login-issue#1

Merged
steve1rm merged 1 commit intodevelopfrom
login-issue
Jun 7, 2025
Merged

login-issue#1
steve1rm merged 1 commit intodevelopfrom
login-issue

Conversation

@rainxchzed
Copy link
Collaborator

No description provided.

…nack is being shown and navigating to blank screen
@rainxchzed rainxchzed changed the base branch from master to develop June 7, 2025 13:08
@steve1rm steve1rm self-requested a review June 7, 2025 13:10

suspend fun execute(email: String, password: String) {
authorizationRepository.login(
suspend fun execute(email: String, password: String): Result<Unit> {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can have Either<Unit, DataError> instead of the Result.

)
val error = response.rightOrNull
return if (error == null) Result.success(Unit)
else Result.failure(Exception("Login failed"))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can handle this in the viewmodel instead of the usecase

@steve1rm steve1rm merged commit 9795c68 into develop Jun 7, 2025
1 check passed
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.

2 participants