Skip to content

fix: template literal interpolation bugs in GitHub API calls and background - #817

Open
saurabhhhcodes wants to merge 1 commit into
Aditya948351:masterfrom
saurabhhhcodes:fix/DevPath-Web-batch-4
Open

fix: template literal interpolation bugs in GitHub API calls and background#817
saurabhhhcodes wants to merge 1 commit into
Aditya948351:masterfrom
saurabhhhcodes:fix/DevPath-Web-batch-4

Conversation

@saurabhhhcodes

Copy link
Copy Markdown
Contributor

Bug Fixes

  1. github.ts — 4 GitHub API endpoint URLs used single quotes instead of template literals (backticks), causing ${GITHUB_API} and ${DEVPATH_REPO} to render literally instead of interpolating the actual values. This broke fetchUserProfile, fetchUserRepos, and fetchRepoContributorStats at runtime.

  2. InteractiveBackground.tsx${DEVPATH_API} in the code snippets array was not being interpolated due to single quotes, showing the literal string on screen instead of the configured API URL.

…round.tsx

- Fixed 4 GitHub API URLs using single quotes instead of backticks in github.ts
  causing runtime failures when fetching user profile, repos, and contributor stats
- Fixed  not being interpolated in InteractiveBackground.tsx
  causing the literal string to be displayed instead of the actual API URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant