Skip to content

Commit

Permalink
[SASS-3442] Fix isPiorData match in wrong order
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Raffe committed Jun 6, 2023
1 parent a20aaba commit c79c31e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/IntegrationFrameworkService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ class IntegrationFrameworkService @Inject()(connector: IntegrationFrameworkConne

private def createOrUpdateStateBenefit(userData: StateBenefitsUserData)
(implicit hc: HeaderCarrier): EitherT[Future, ApiServiceError, UUID] = userData match {
case _ if userData.isHmrcData => createCustomerOverride(userData)
case _ if userData.isNewClaim => addCustomerStateBenefit(userData)
case _ if userData.isHmrcData => createCustomerOverride(userData)
case _ => updateCustomerStateBenefit(userData)
}

Expand Down

0 comments on commit c79c31e

Please sign in to comment.