Skip to content

Commit 2b0c803

Browse files
author
“Akshay
committed
Made recommended changes
1 parent 64fd749 commit 2b0c803

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

ts/Iterable.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ enum IterableActionSource {
3131
}
3232

3333
enum AuthResponseCallback {
34-
SUCCESS = 'success',
35-
FAILURE = 'failure',
34+
SUCCESS,
35+
FAILURE,
3636
}
3737

3838
/**
@@ -458,7 +458,7 @@ class Iterable {
458458
}
459459

460460
if (Iterable.savedConfig.authHandler) {
461-
var authResponseCallback = ""
461+
var authResponseCallback: AuthResponseCallback
462462
RNEventEmitter.addListener(
463463
EventName.handleAuthCalled,
464464
() => {
@@ -497,13 +497,13 @@ class Iterable {
497497
RNEventEmitter.addListener(
498498
EventName.handleAuthSuccessCalled,
499499
() => {
500-
authResponseCallback = "success"
500+
authResponseCallback = AuthResponseCallback.SUCCESS
501501
}
502502
)
503503
RNEventEmitter.addListener(
504504
EventName.handleAuthFailureCalled,
505505
() => {
506-
authResponseCallback = "failure"
506+
authResponseCallback = AuthResponseCallback.FAILURE
507507
}
508508
)
509509
}

0 commit comments

Comments
 (0)