Skip to content

Commit 1409b17

Browse files
fixed typo on getAccount
1 parent a23770d commit 1409b17

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

ios/RNZendeskChatModule.m

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,19 +205,17 @@ - (void) dismissChatUI {
205205
(RCTPromiseResolveBlock) resolve
206206
rejecter: (RCTPromiseRejectBlock) reject) {
207207

208-
[ZDKChat.accountProvider getAccout:^(ZDKChatAccount *account, NSError *error) {
208+
[ZDKChat.accountProvider getAccount:^(ZDKChatAccount *account, NSError *error) {
209209
if (account) {
210-
switch (account.accountstatus) {
210+
switch (account.accountStatus) {
211211
case ZDKChatAccountStatusOnline:
212-
resolve(true);
212+
resolve(@YES);
213213
break;
214214

215215
default:
216-
resolve(false);
216+
resolve(@NO);
217217
break;
218218
}
219-
} else {
220-
reject(false);
221219
}
222220
}];
223221
}

0 commit comments

Comments
 (0)