react-usespinner 1.0.9 → 1.0.10

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.
@@ -85,7 +85,7 @@ var useSpinner = function (globalOptions) {
85
85
  var SpinnerContainer = function (_a) {
86
86
  var spinner = _a.spinner, children = _a.children;
87
87
  // If no active Actions then dont display anything
88
- if (actions && actions.length === 0) {
88
+ if (actions && actions.length > 0) {
89
89
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: spinner });
90
90
  }
91
91
  return (0, jsx_runtime_1.jsx)("div", __assign({ className: "useSpinner" }, { children: children }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-usespinner",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Track actions in progress to know if a spinner should be display. Actions expire within 10 seconds if not expired in code",
5
5
  "private": false,
6
6
  "license": "MIT",