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

Update App.js in FormAddFriend Component of image generation URL #23

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Oceancoder1
Copy link

On tutorial code, while adding newFriend object inside FormAddFriend component, it was unable to generate fixed image for user with specific id. The problem was the missing query parameter 'u' .

Previous code:

const newFriend = {
      name,
      image: `${image}?=${id}`,
      balance: 0,
      id,
    };

New code:

const newFriend = {
      name,
      image: `${image}?u=${id}`,
      balance: 0,
      id,
    };

On tutorial code, while adding newFriend object inside FormAddFriend component, it was unable to generate fix image.
The problem was the missing 'u' string.

Previous code:
const newFriend = {
      name,
      image: `${image}?=${id}`,
      balance: 0,
      id,
    };
New code:
const newFriend = {
      name,
      image: `${image}?u=${id}`,
      balance: 0,
      id,
    };
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