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

Incorrect usage of template literal in JavaScript code #124

Open
maski07 opened this issue Apr 24, 2023 · 1 comment
Open

Incorrect usage of template literal in JavaScript code #124

maski07 opened this issue Apr 24, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@maski07
Copy link

maski07 commented Apr 24, 2023

Describe the bug
There is an error in the usage of template literal in the following code:

const endpointURL = `https://api.twitter.com/2/users/me?{params}`;

It should be corrected to:

const endpointURL = `https://api.twitter.com/2/users/me?${params}`;

This bug is causing unexpected behavior in the program.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the section where the code is used
  2. Execute the code

Expected behavior
The code should execute without any error or unexpected behavior.

Additional context
Nothing

@maski07 maski07 added the bug Something isn't working label Apr 24, 2023
@maski07
Copy link
Author

maski07 commented Apr 24, 2023

I have addressed the issue in the following pull request:
#123

Would you please review the changes and consider merging them if they meet the requirements?
Thank you for your attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant