NTP-62863 | remove isAssuredReward check (#16358)
This commit is contained in:
committed by
GitHub
parent
599ea3613d
commit
dfd09d0b3c
@@ -7,7 +7,6 @@
|
||||
|
||||
package com.navi.rr.scratchcard.helper
|
||||
|
||||
import com.navi.rr.scratchcard.helper.BaseScratchCardNudgeHelper.Companion.DEFAULT
|
||||
import com.navi.rr.scratchcard.model.GratificationResponse
|
||||
import com.navi.rr.scratchcard.model.states.ScratchCardScreenVariant
|
||||
import javax.inject.Inject
|
||||
@@ -24,14 +23,9 @@ class ScratchCardScreenResolver @Inject constructor() {
|
||||
val playerId = gratificationResponse.playerId
|
||||
val screenDefinition = gratificationResponse.screenDefinition
|
||||
val isSpecialReward = scratchCardNudgeHelper.isSpecialReward()
|
||||
val isAssuredReward =
|
||||
gratificationResponse.scratchCardResponse?.rewardCategory?.let { it != DEFAULT }
|
||||
?: false
|
||||
|
||||
return when {
|
||||
playerId != null &&
|
||||
screenDefinition != null &&
|
||||
scratchCardResponse != null &&
|
||||
!isAssuredReward -> {
|
||||
playerId != null && screenDefinition != null && scratchCardResponse != null -> {
|
||||
scratchCardResponse.toScratchCardModel().let { model ->
|
||||
ScratchCardScreenVariant.Deck(
|
||||
screenDefinition = screenDefinition,
|
||||
|
||||
Reference in New Issue
Block a user