Skip to content

Commit

Permalink
Check also for presence - not only callback type (#98)
Browse files Browse the repository at this point in the history
Co-authored-by: filip-misztal <[email protected]>
  • Loading branch information
xserxses and filip-misztal authored Oct 3, 2023
1 parent da59eba commit a6ca951
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ class Client {
suspendCancellableCoroutine<Boolean> { continuation ->
sessionStorage.get(clientId) { result ->
result
.onSuccess { continuation.resume(true) }
.onSuccess { continuation.resume(it != null) }
.onFailure { continuation.resume(false) }
}
}
Expand Down

0 comments on commit a6ca951

Please sign in to comment.