Skip to content

Commit

Permalink
optional operator
Browse files Browse the repository at this point in the history
  • Loading branch information
dianabarsan committed May 29, 2024
1 parent e0978c3 commit 661ffa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const getSessionUrl = (db) => {
};

const authenticate = async (db) => {
if (!db.credentials || !db.credentials.username) {
if (!db?.credentials?.username) {
return;
}

Expand Down

0 comments on commit 661ffa7

Please sign in to comment.