Skip to content

Commit

Permalink
Fix for Firefox: don't compare hasError to undefined because it retur…
Browse files Browse the repository at this point in the history
…ns null
  • Loading branch information
Filip Jarno committed Nov 26, 2021
1 parent 5a724b5 commit 1371733
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "redux-persist-chrome-storage",
"version": "1.0.3",
"version": "1.0.4",
"description": "redux-persist storage adaptor for Chrome extensions storage API.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/storage/ChromeStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class ChromeStorage {
* @return {boolean}
*/
hasError() {
return this.getError() !== undefined;
return !!this.getError();
}

/**
Expand Down

0 comments on commit 1371733

Please sign in to comment.