@sprucelabs/spruce-heartwood-utils 16.9.23 → 16.10.1

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.
@@ -49,6 +49,9 @@ export class ThemeManagerImpl {
49
49
  setTheme(theme, shouldAnimate = true) {
50
50
  var _a, _b;
51
51
  return __awaiter(this, void 0, void 0, function* () {
52
+ if (this.currentTheme.name === theme.name) {
53
+ return;
54
+ }
52
55
  this.themeCount++;
53
56
  this.currentTheme = theme;
54
57
  const _c = theme.props, { calendarEvents, borderRadius } = _c, rest = __rest(_c, ["calendarEvents", "borderRadius"]);
@@ -42,6 +42,9 @@ class ThemeManagerImpl {
42
42
  }
43
43
  async setTheme(theme, shouldAnimate = true) {
44
44
  var _a, _b;
45
+ if (this.currentTheme.name === theme.name) {
46
+ return;
47
+ }
45
48
  this.themeCount++;
46
49
  this.currentTheme = theme;
47
50
  const _c = theme.props, { calendarEvents, borderRadius } = _c, rest = __rest(_c, ["calendarEvents", "borderRadius"]);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-heartwood-utils",
3
3
  "description": "Heartwood Utilities",
4
- "version": "16.9.23",
4
+ "version": "16.10.1",
5
5
  "skill": {
6
6
  "namespace": "heartwood"
7
7
  },