diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-07-31 01:33:23 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-07-31 01:33:23 +0200 |
commit | bcefbd7aab5f33f93d626c6421a1a1218c1a91a2 (patch) | |
tree | c0ac6e5e5fde9f51024ad5409c87b7e01c4af60a /packages/idb-bridge/src/util/makeStoreKeyValue.ts | |
parent | 16ecbc9f177f1f71048840edf9b7af20ace3aad8 (diff) | |
download | wallet-core-bcefbd7aab5f33f93d626c6421a1a1218c1a91a2.tar.xz |
idb-bridge: test cases, package structure and missing functionality
Diffstat (limited to 'packages/idb-bridge/src/util/makeStoreKeyValue.ts')
-rw-r--r-- | packages/idb-bridge/src/util/makeStoreKeyValue.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/idb-bridge/src/util/makeStoreKeyValue.ts b/packages/idb-bridge/src/util/makeStoreKeyValue.ts index 4f45e0d8a..845634ac2 100644 --- a/packages/idb-bridge/src/util/makeStoreKeyValue.ts +++ b/packages/idb-bridge/src/util/makeStoreKeyValue.ts @@ -18,7 +18,7 @@ export function makeStoreKeyValue( autoIncrement: boolean, keyPath: KeyPath | null, ): StoreKeyResult { - const haveKey = key !== undefined && key !== null; + const haveKey = key !== null && key !== undefined; const haveKeyPath = keyPath !== null && keyPath !== undefined; // This models a decision table on (haveKey, haveKeyPath, autoIncrement) |