Skip to content

Commit a9e267f

Browse files
Fix typeof check for notify in core (#1106)
* Fix typeof check for notify in core * Bump version * Update packages/core/package.json Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com> Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com>
1 parent 79ee71a commit a9e267f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/core",
3-
"version": "2.3.1",
3+
"version": "2.3.2-alpha.1",
44
"scripts": {
55
"build": "rollup -c",
66
"dev": "rollup -c -w",

packages/core/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function init(options: InitOptions): OnboardAPI {
103103
}
104104

105105
// update notify
106-
if (typeof notify !== undefined) {
106+
if (typeof notify !== 'undefined') {
107107
if ('desktop' in notify || 'mobile' in notify) {
108108
const error = validateNotifyOptions(notify)
109109

0 commit comments

Comments
 (0)