dirk-cfx-react 1.1.11 → 1.1.12

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.
package/dist/index.js CHANGED
@@ -229,7 +229,7 @@ async function fetchNui(eventName, data, mockData) {
229
229
  },
230
230
  body: JSON.stringify(data)
231
231
  };
232
- if (isEnvBrowser() && mockData) return mockData;
232
+ if (isEnvBrowser() && mockData !== void 0) return mockData;
233
233
  if (isEnvBrowser() && mockData === void 0) {
234
234
  console.warn(
235
235
  `[fetchNui] Called fetchNui for event "${eventName}" in browser environment without mockData. Returning empty object.`