@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/forms.js CHANGED
@@ -624,9 +624,6 @@ var InsforgeContext = createContext(void 0);
624
624
  function useInsforge() {
625
625
  const context = useContext(InsforgeContext);
626
626
  if (!context) {
627
- if (typeof window !== "undefined") {
628
- throw new Error("useInsforge must be used within InsforgeProvider");
629
- }
630
627
  return {
631
628
  user: null,
632
629
  isLoaded: false,