Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
* Added default value
* Now returns capitalized string
* Fixed linting
  • Loading branch information
builder-247 authored and ChristianDobbie committed Jan 10, 2022
1 parent b9e3abf commit 186dd3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions store/buildSkyBlockProfiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ async function buildProfile(uuid, id = null) {

return getProfileData(profile_id);
}, { cacheDuration: 600 });
returnedProfile.cute_name = profiles[profile_id].cute_name.toLowerCase(); //add profile name to the end of the profile
return returnedProfile; //return appended profile object
returnedProfile.cute_name = profiles[profile_id].cute_name || ''; // add profile name to the end of the profile
return returnedProfile; // return appended profile object
}

module.exports = {
Expand Down

0 comments on commit 186dd3f

Please sign in to comment.