use-lunch-money
Advanced tools
Comparing version 1.1.4 to 1.1.5
{ | ||
"name": "use-lunch-money", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "Lunch Money profile react hook", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -14,2 +14,6 @@ "use strict"; | ||
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } | ||
if (!window.LunchMoney) { | ||
// @ts-ignore | ||
window.LunchMoney = {}; | ||
} | ||
var useLunchMoney = function useLunchMoney() { | ||
@@ -24,8 +28,2 @@ var _useState = (0, _react.useState)({ | ||
(0, _react.useEffect)(function () { | ||
if (!window.LunchMoney) { | ||
// @ts-ignore | ||
window.LunchMoney = {}; | ||
} | ||
}); | ||
(0, _react.useEffect)(function () { | ||
if (!window || !window.LunchMoney) return; | ||
@@ -32,0 +30,0 @@ try { |
4247
67