Skip to content

Commit

Permalink
fix: correct the avatars api
Browse files Browse the repository at this point in the history
This updates the correct urls for the fetching of avatars from the api
  • Loading branch information
SudharakaP committed Dec 30, 2020
1 parent 92bfdb4 commit a7b47d8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ export class CourseDetailComponent implements OnInit, OnDestroy {

public profilePicURL(name?: string): string {
if (name) {
return `https://avatars.dicebear.com/v2/avataaars/${name}.svg?options[style][]=circle&options[mouth][]=smile`;
return `https://avatars.dicebear.com/api/avataaars/${name}.svg?style=circle&mouth[]=smile`;
} else {
return `https://avatars.dicebear.com/v2/avataaars/PythonSinhala.svg?options[style][]=circle&options[mouth][]=smile`;
return `https://avatars.dicebear.com/api/avataaars/PythonSinhala.svg?style=circle&mouth[]=smile`;
}
}

Expand Down

0 comments on commit a7b47d8

Please sign in to comment.