BioDrop icon indicating copy to clipboard operation
BioDrop copied to clipboard

links property is now optional. generate.js doesn't break when links are not defined.

Open SquatCub opened this issue 3 years ago • 0 comments

Fixes Issue

Closes #1334

Changes proposed

Makes a validation to check if links exists in ProfilePage.js, if true the array of links passes all his values, else an empty array is passed. Then in generate.js another validation is made to check if profile links exists, if true the length is returned, else a default zero is passed.

Check List (Check all the applicable boxes)

  • [x] My code follows the code style of this project.
  • [ ] My change requires changes to the documentation.
  • [ ] I have updated the documentation accordingly.
  • [x] All new and existing tests passed.
  • [x] This PR does not contain plagiarized content.
  • [x] The title of my pull request is a short description of the requested changes.

Screenshots

User profile data without links attribute Screen Shot 2022-07-06 at 14 36 49

Profile user view working without links attribute Screen Shot 2022-07-06 at 14 34 54

Note to reviewers

SquatCub avatar Jul 06 '22 19:07 SquatCub