Skip to content

Commit

Permalink
Populate missing sub object properties in credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
ptlthg committed Sep 25, 2024
1 parent 095b690 commit f3185cf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/credentials.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ for (const key in defaultCredentials) {
CREDENTIALS[key] = defaultCredentials[key];
hasBeenModified = true;
}

if (typeof defaultCredentials[key] === "object") {
for (const subKey in defaultCredentials[key]) {
if (CREDENTIALS[key][subKey] == undefined) {
CREDENTIALS[key][subKey] = defaultCredentials[key][subKey];
hasBeenModified = true;
}
}
}
}

if (hasBeenModified) {
Expand Down

0 comments on commit f3185cf

Please sign in to comment.