Skip to content

Commit

Permalink
Corrected the reviewer's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsec13 committed Apr 22, 2024
1 parent 76165bc commit 79401a3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import app.cashadvisor.common.utill.exceptions.NetworkException
import app.cashadvisor.common.utill.exceptions.RegisterException
import kotlinx.serialization.json.Json
import javax.inject.Inject
import kotlin.time.Duration.Companion.nanoseconds

class NetworkToRegisterExceptionMapper @Inject constructor(
private val json: Json
Expand Down Expand Up @@ -49,7 +50,7 @@ class NetworkToRegisterExceptionMapper @Inject constructor(
handleErrorResponse<ErrorWrongConfirmationCodeResponse>(exception.errorBody)
RegisterException.EmailCodeConfirmation.UnauthorizedWrongConfirmationCode(
remainingAttempts = errorResponse.remainingAttempts,
lockDuration = errorResponse.lockDuration,
lockDuration = errorResponse.lockDurationNanoseconds.nanoseconds.inWholeMinutes,
message = errorResponse.error,
statusCode = errorResponse.statusCode
)
Expand Down

0 comments on commit 79401a3

Please sign in to comment.