Skip to content

Commit

Permalink
fix: remove https protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Mar 11, 2021
1 parent 72a1693 commit e48994a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/components/src/GithubAvatar/useGithubProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const useGithubProfile = ({
}
: undefined;
const fetchData = async () => {
fetch(`https://api.github.com/users/${encodeURIComponent(username)}`, {
fetch(`//api.github.com/users/${encodeURIComponent(username)}`, {
headers,
})
.then(res => res.json())
Expand All @@ -76,7 +76,7 @@ export const useGithubProfile = ({
// could not find
profilesCache[username] = profile;
fetch(
`https://api.github.com/search/users?q=${encodeURIComponent(
`//api.github.com/search/users?q=${encodeURIComponent(
`${username} in:name`,
)}`,
{
Expand All @@ -100,7 +100,7 @@ export const useGithubProfile = ({
);
if (match) {
fetch(
`https://api.github.com/users/${encodeURIComponent(
`//api.github.com/users/${encodeURIComponent(
match.login,
)}`,
{
Expand Down

0 comments on commit e48994a

Please sign in to comment.