fixed code
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
export const fetchProfile = async (link, index = '') => {
|
||||
const response = await fetch(`${link}/${index}`);
|
||||
export const fetchProfile = async (link, index) => {
|
||||
const response = await fetch(`${link}${index}`);
|
||||
let data = await response.json();
|
||||
|
||||
return data;
|
||||
|
Reference in New Issue
Block a user