Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Conversation

@swaaaaaathii
Copy link
Contributor

No description provided.

@swaaaaaathii swaaaaaathii requested a review from macpd July 27, 2020 22:53

function AdDetailsPage() {
const [adIdParam, setAdIdParam] = useQueryParam('ad_id', StringParam);
const adIdParam = useQueryParam('ad_id', StringParam);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is why /cluster is broken. adIdParam is not a string now. it's an array of string and function. https://reactjs.org/docs/hooks-state.html#tip-what-do-square-brackets-mean

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for now, leave this line as is, and disable lint on it with a comment like https://github.com/OnlinePoliticalTransparency/ad_screener/blob/master/src/AdScreenerTool.js#L299

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it! Will do.

Comment on lines 19 to 20
console.log(startingDate);
console.log(endingDate);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these needed?

Copy link
Contributor Author

@swaaaaaathii swaaaaaathii Jul 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had added them to remove an unused variable warning. I'll disable lint instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants