Skip to content

Commit

Permalink
Ignore remote as a location
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-mba committed Feb 10, 2023
1 parent e0e90b0 commit f2c40fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pages/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export async function getServerSideProps() {
users = users.filter(
(user) =>
user.location &&
(user.location.provided !== "unknown" || user.location.name !== "unknown")
(user.location.provided !== "unknown" ||
user.location.name !== "unknown" ||
user.location.name.toLowerCase() === "remote")
);

return {
Expand Down
2 changes: 1 addition & 1 deletion services/github/getLocationByUsername.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default async function getLocationByUsername(username) {
return location;
}

if (!github.data.location) {
if (!github.data.location || github.data.location.toLowerCase() === 'remote') {
return location;
}

Expand Down

0 comments on commit f2c40fd

Please sign in to comment.