Skip to content

Commit

Permalink
♻️ make parameters optional
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkjrs committed Jan 11, 2024
1 parent 9cc03d5 commit 821fd54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/hooks/usePromoDashboardData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const METRICS: CampaignMetrics[] = [
* @description A React hook that returns the sorted dashboard data and number of active campaigns.
*/
export function usePromoDashboardData(
campaignsData: CampaignData[] | CampaignDummyData[],
deletedCampaigns: string[]
campaignsData?: CampaignData[] | CampaignDummyData[],
deletedCampaigns?: string[]
) {
const [numberOfActiveCampaigns, setNumberOfActiveCampaigns] = useState<
number | undefined
Expand Down

0 comments on commit 821fd54

Please sign in to comment.