Skip to content

Commit

Permalink
Merge pull request #568 from guardian/support-plus-default-promo-requ…
Browse files Browse the repository at this point in the history
…ired

Make SupporterPlus default promo a required field
  • Loading branch information
jamesgorrie authored Apr 12, 2024
2 parents 6303f4c + 7f097c7 commit 80cc9cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/DefaultPromos.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ case class DefaultPromos(
guardianWeekly: Seq[String],
paper: Seq[String],
digital: Seq[String],
supporterPlus: Option[Seq[String]],
supporterPlus: Seq[String],
)

object DefaultPromos {
Expand Down
2 changes: 1 addition & 1 deletion public/src/components/defaultPromos.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const DefaultPromos: React.FC<InnerProps<DefaultPromos>> = ({
const [paperPromosString, setpaperPromosString] = useState<string>(data.paper.join(', '));
const [digitalPromoString, setdigitalPromosString] = useState<string>(data.digital.join(', '));
const [supporterPlusPromoString, setSupporterPlusPromosString] = useState<string>(
(data.supporterPlus ?? []).join(', '),
data.supporterPlus.join(', '),
);

const classes = useStyles();
Expand Down

0 comments on commit 80cc9cc

Please sign in to comment.