@lendi/navbar 7.40.1 → 7.40.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -953,7 +953,7 @@ var calculateChatDisabled = (brand, _ref) => {
953
953
  if (chatx) {
954
954
  isChatDisabled = true; // Disable chat if chatx flag is true
955
955
  } else if (brand === lalaUtils.Brand.Aussie && enableAussieChat !== undefined) {
956
- isChatDisabled = enableAussieChat; // Enable chat for Aussie brand if enableAussieChat flag is defined
956
+ isChatDisabled = !enableAussieChat; // Enable chat for Aussie brand if enableAussieChat flag is defined
957
957
  } else if (disableChat !== undefined) {
958
958
  // lendi check
959
959
  isChatDisabled = disableChat; // Disable chat if disableChat flag is defined and set its value
@@ -576,7 +576,7 @@ var _excluded$b = [ "showTalkToExpertCta" ], withDomainChat = Component => _ref
576
576
  componentId: "lui__sc-no953w-0"
577
577
  })([ "", ";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;display:flex;flex-direction:column;height:100%;" ], utils.normalise), calculateChatDisabled = (brand, _ref) => {
578
578
  var {disableChat: disableChat, enableAussieChat: enableAussieChat, chatx: chatx} = _ref;
579
- return !!chatx || (brand === lalaUtils.Brand.Aussie && void 0 !== enableAussieChat ? enableAussieChat : void 0 === disableChat || disableChat);
579
+ return !!chatx || (brand === lalaUtils.Brand.Aussie && void 0 !== enableAussieChat ? !enableAussieChat : void 0 === disableChat || disableChat);
580
580
  }, HeadWrapper = styled__default.default.div.withConfig({
581
581
  displayName: "style__HeadWrapper",
582
582
  componentId: "lui__sc-zy0mzz-0"
@@ -920,7 +920,7 @@ var calculateChatDisabled = (brand, _ref) => {
920
920
  if (chatx) {
921
921
  isChatDisabled = true; // Disable chat if chatx flag is true
922
922
  } else if (brand === Brand.Aussie && enableAussieChat !== undefined) {
923
- isChatDisabled = enableAussieChat; // Enable chat for Aussie brand if enableAussieChat flag is defined
923
+ isChatDisabled = !enableAussieChat; // Enable chat for Aussie brand if enableAussieChat flag is defined
924
924
  } else if (disableChat !== undefined) {
925
925
  // lendi check
926
926
  isChatDisabled = disableChat; // Disable chat if disableChat flag is defined and set its value
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lendi/navbar",
3
3
  "access": "restricted",
4
- "version": "7.40.1",
4
+ "version": "7.40.2",
5
5
  "license": "ISC",
6
6
  "source": "src/index.tsx",
7
7
  "main": "dist/navbar.cjs.js",