dirk-cfx-react 1.1.76 → 1.1.77

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
@@ -6574,6 +6574,11 @@ function DirkProvider({ children, overideResourceName, themeOverride }) {
6574
6574
  }, []);
6575
6575
  useNuiEvent("UPDATE_DIRK_LIB_SETTINGS", (data) => {
6576
6576
  if (!data || typeof data !== "object") return;
6577
+ const carriesOverrideFlag = Object.prototype.hasOwnProperty.call(data, "themeOverride");
6578
+ if (carriesOverrideFlag) {
6579
+ useSettings.setState(data);
6580
+ return;
6581
+ }
6577
6582
  const current = useSettings.getState();
6578
6583
  if (current.themeOverride) {
6579
6584
  const { primaryColor: _pc, primaryShade: _ps, customTheme: _ct, ...rest } = data;