Skip to content

Commit

Permalink
ENG-0000 - Removed Nullish-Coalescence Operator (#367)
Browse files Browse the repository at this point in the history
Replaced it with a traditional ||.  Maintains maximum backwards
compatibility for older applications.
  • Loading branch information
mcnielsen authored May 30, 2024
1 parent 0df9a2a commit 126f1b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@al/core",
"version": "1.2.30",
"version": "1.2.31",
"description": "Node Enterprise Packages for Alert Logic (NEPAL) Core Library",
"main": "./dist/index.cjs.js",
"types": "./dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/aims-client/aims-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export class AIMSClientInstance implements AlValidationSchemaProvider {
results.forEach((result, index) => {
let id = userIds[index];
if (result.status === 'fulfilled') {
this._usersDict[id] = result.value.name ?? '';
this._usersDict[id] = result.value.name || '';
} else if(result.status === 'rejected') {
this._usersDict[id] = 'Unknown User';
}
Expand Down

0 comments on commit 126f1b7

Please sign in to comment.