Found the answer myself.
That’s because the key “name” was not in object body
What I did :
const name = `${profileData.given_name} ${profileData.family_name}`;
const profile = {
...profileData,
name,
};
Found the answer myself.
That’s because the key “name” was not in object body
What I did :
const name = `${profileData.given_name} ${profileData.family_name}`;
const profile = {
...profileData,
name,
};