@theguild/components 7.2.3 → 7.2.4

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1410,8 +1410,10 @@ function GetYourAPIGameRightSection({ className }) {
1410
1410
  variant: "tertiary",
1411
1411
  href: "https://the-guild.dev/contact",
1412
1412
  onClick: (event) => {
1413
- window.$crisp?.push(["do", "chat:open"]);
1414
- event.preventDefault();
1413
+ if (window.$crisp) {
1414
+ window.$crisp.push(["do", "chat:open"]);
1415
+ event.preventDefault();
1416
+ }
1415
1417
  },
1416
1418
  children: "Talk to us"
1417
1419
  }
@@ -1795,8 +1797,10 @@ function HiveNavigation({
1795
1797
  target: "_blank",
1796
1798
  rel: "noopener noreferrer",
1797
1799
  onClick: (event) => {
1798
- window.$crisp?.push(["do", "chat:open"]);
1799
- event.preventDefault();
1800
+ if (window.$crisp) {
1801
+ window.$crisp.push(["do", "chat:open"]);
1802
+ event.preventDefault();
1803
+ }
1800
1804
  },
1801
1805
  children: [
1802
1806
  "Contact ",
@@ -2123,8 +2127,10 @@ function HiveFooter({
2123
2127
  className: "hive-focus -m-2 rounded p-2 font-medium hover:text-blue-700 hover:underline dark:hover:text-blue-100",
2124
2128
  href: "https://the-guild.dev/contact",
2125
2129
  onClick: (event) => {
2126
- window.$crisp?.push(["do", "chat:open"]);
2127
- event.preventDefault();
2130
+ if (window.$crisp) {
2131
+ window.$crisp.push(["do", "chat:open"]);
2132
+ event.preventDefault();
2133
+ }
2128
2134
  },
2129
2135
  children: "Contact Us"
2130
2136
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theguild/components",
3
- "version": "7.2.3",
3
+ "version": "7.2.4",
4
4
  "repository": {
5
5
  "url": "https://github.com/the-guild-org/docs",
6
6
  "directory": "packages/components"