diff --git a/client/auth/logout.js b/client/auth/logout.js index 121a96a..2ac1a5a 100644 --- a/client/auth/logout.js +++ b/client/auth/logout.js @@ -19,7 +19,7 @@ const parseClientCookies = require("../utils/parseClientCookies"); * * @async * - * @param {object} params - Single object passed + * @param {object|null} params - Single object passed * @param {string|null} params.googleClientId - Google client Id if applicable * * @requires localStorageUser - a "user" JSON string stored in local storage with all @@ -76,7 +76,7 @@ module.exports = async function logout(params) { ////////////////////////////////////////////////////////////////////////////////// if (socialId) { - const googleClientId = params.googleClientId; + const googleClientId = params?.googleClientId; if (googleClientId) { const googleScript = document.createElement("script"); diff --git a/package.json b/package.json index d0581ce..8825368 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "1.1.50", + "version": "1.1.51", "description": "Cloud-based SQL data management tool", "main": "index.js", "scripts": {