Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make valid: 131/typecheck and 132/heroku-cli #133

Merged
merged 2 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 'Install Heroku CLI'
run: curl https://cli-assets.heroku.com/install.sh | sh
- name: Deploy to Heroku
uses: akhileshns/[email protected]
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 'Install Heroku CLI'
run: curl https://cli-assets.heroku.com/install.sh | sh
- name: Deploy to Heroku
uses: akhileshns/[email protected]
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 'Install Heroku CLI'
run: curl https://cli-assets.heroku.com/install.sh | sh
- name: Deploy to Heroku
uses: akhileshns/[email protected]
with:
Expand Down
12 changes: 6 additions & 6 deletions app/utils/analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ export function analytics(eventData) {
}

export function analyticsTrackFilterByDistrictToggle(expandedIndex) {
if(expandedIndex===0) {
if (expandedIndex === 0) {
analytics({
category: "Accordion",
action: "Toggle Filter By District Accordion",
name: "Open",
});
} else if(expandedIndex===-1) {
} else if (expandedIndex === -1) {
analytics({
category: "Accordion",
action: "Toggle Filter By District Accordion",
Expand All @@ -40,13 +40,13 @@ export function analyticsTrackFilterByDistrictToggle(expandedIndex) {
}

export function analyticsTrackSelectedDistrictToggle(expandedIndex) {
if(expandedIndex===0) {
if (expandedIndex === 0) {
analytics({
category: "Accordion",
action: "Toggle Selected District Accordion",
name: "Open",
});
} else if(expandedIndex===-1) {
} else if (expandedIndex === -1) {
analytics({
category: "Accordion",
action: "Toggle Selected District Accordion",
Expand All @@ -62,13 +62,13 @@ export function analyticsTrackSelectedDistrictToggle(expandedIndex) {
}

export function analyticsWelcomePanelToggle(expandedIndex) {
if(expandedIndex===0) {
if (expandedIndex === 0) {
analytics({
category: "Accordion",
action: "Toggle Welcome Panel Accordion",
name: "Open",
});
} else if(expandedIndex===-1) {
} else if (expandedIndex === -1) {
analytics({
category: "Accordion",
action: "Toggle Welcome Panel Accordion",
Expand Down
2 changes: 1 addition & 1 deletion app/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function setNewSearchParams(
const newSearchParams = new URLSearchParams(searchParams);

for (const [key, value] of Object.entries(changes)) {
if (value === (undefined || null)) {
if (value === undefined || value === null) {
newSearchParams.delete(key);
continue;
}
Expand Down
Loading