Skip to content

Commit

Permalink
♻️ added null safety check
Browse files Browse the repository at this point in the history
  • Loading branch information
harshzalavadiya committed Apr 16, 2020
1 parent d710907 commit 4fe1a27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "use-indexeddb",
"version": "1.0.1",
"version": "1.0.2",
"description": "Lightweight (1KB gzipped) hooks w/ promises for easy IndexedDB access in React ⚓",
"author": "Harsh Zalavadiya",
"module": "dist/use-indexeddb.esm.js",
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const IndexedDBProvider = (props: UseIndexedDBProps) => {
{props.children}
</ObservationCreateContext.Provider>
) : (
props.loading
props.loading || null
);
};

Expand Down

0 comments on commit 4fe1a27

Please sign in to comment.