Skip to content

Commit

Permalink
fix: null and undefined
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Apr 2, 2024
1 parent 1f4f1ae commit dbf9266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export default class Account {

const continuation = await this.storage.getCurrentContinuation()

if (typeof continuation === 'undefined') {
if (typeof continuation === 'undefined' || continuation === null) {
// If there is no pending continuation, we just sync normally

let strategyClass: typeof DefaultSyncProcess|typeof MergeSyncProcess|typeof UnidirectionalSyncProcess, direction: TItemLocation
Expand Down

0 comments on commit dbf9266

Please sign in to comment.