@insforge/react 0.5.1 → 0.5.2

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
@@ -415,9 +415,6 @@ function InsforgeProvider({
415
415
  function useInsforge() {
416
416
  const context = useContext(InsforgeContext);
417
417
  if (!context) {
418
- if (typeof window !== "undefined") {
419
- throw new Error("useInsforge must be used within InsforgeProvider");
420
- }
421
418
  return {
422
419
  user: null,
423
420
  isLoaded: false,