We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a23770d commit 1409b17Copy full SHA for 1409b17
ios/RNZendeskChatModule.m
@@ -205,19 +205,17 @@ - (void) dismissChatUI {
205
(RCTPromiseResolveBlock) resolve
206
rejecter: (RCTPromiseRejectBlock) reject) {
207
208
- [ZDKChat.accountProvider getAccout:^(ZDKChatAccount *account, NSError *error) {
+ [ZDKChat.accountProvider getAccount:^(ZDKChatAccount *account, NSError *error) {
209
if (account) {
210
- switch (account.accountstatus) {
+ switch (account.accountStatus) {
211
case ZDKChatAccountStatusOnline:
212
- resolve(true);
+ resolve(@YES);
213
break;
214
215
default:
216
- resolve(false);
+ resolve(@NO);
217
218
}
219
- } else {
220
- reject(false);
221
222
}];
223
0 commit comments