Skip to content

Commit 3c9b660

Browse files
shaybs247Shay Ben Simon
andauthored
fix promise handling (#12)
Co-authored-by: Shay Ben Simon <shay.bs@spot.im>
1 parent 3f13938 commit 3c9b660

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@open-web/react-sdk",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "React wrapper around OpenWeb's products",
55
"author": "OpenWeb",
66
"license": "UNLICENSED",

src/utils/TwoTokenHandshake/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const startTTH = ({ performBEDHandshakeCallback, userId }: TStartTTH) =>
1717
const codeB = await performBEDHandshakeCallback(codeA);
1818

1919
if (codeB) {
20-
completeTTHCallback(codeB);
20+
await completeTTHCallback(codeB);
2121
}
2222
} catch (err) {
2323
console.error('startTTH - error with performBEDHandshakeCallback', err);

0 commit comments

Comments
 (0)