Skip to content

Commit 05b970c

Browse files
committed
correct some errors in documentation
1 parent adf6851 commit 05b970c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ Authentication in SendBird Desk is done by calling `SendBirdDesk.authenticate()`
3838
const sb = new SendBird({ appId : 'YOUR_APP_ID' });
3939
sb.connect(userId, accessToken, (res, err) => {
4040
if(err) throw err;
41-
const desk = new SendBirdDesk();
42-
desk.authenticate(userId, accessToken, (res, err) => {
41+
SendBirdDesk.authenticate(userId, accessToken, (res, err) => {
4342
if(err) throw err;
4443
// Now you can use Desk SDK later on
4544
});
@@ -75,15 +74,15 @@ Retrieving ticket list is essential for inbox. SendBird Desk SDK provides `Ticke
7574
```js
7675
Ticket.getOpenedList(offset, (res, err) => {
7776
const tickets = res;
78-
// offset += tickets.size(); for the next tickets.
77+
// offset += tickets.length; for the next tickets.
7978
// here is to display tickets on inbox.
8079
});
8180
```
8281

8382
```js
8483
Ticket.getClosedList(offset, (res, err) => {
8584
const tickets = res;
86-
// offset += tickets.size(); for the next tickets.
85+
// offset += tickets.length; for the next tickets.
8786
// here is to display tickets on inbox.
8887
});
8988
```

0 commit comments

Comments
 (0)