Skip to content

Commit

Permalink
fix(ArticleDetail): Simplify campaign state initialization in useCamp…
Browse files Browse the repository at this point in the history
…aignState hook

PD-2412-1-4
  • Loading branch information
Kechicode committed Dec 10, 2024
1 parent 9de2666 commit f06416b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/ArticleDetail/Edit/Hooks/useCampaignState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const useCampaignState = (article: Article) => {
})

const [campaign, setCampaign] = useState<ArticleCampaignInput | undefined>(
initialSelectedCampaign?.id && initialSelectedStage
initialSelectedCampaign?.id
? {
campaign: initialSelectedCampaign.id,
stage: initialSelectedStage,
Expand Down

0 comments on commit f06416b

Please sign in to comment.