Skip to content

Commit

Permalink
handle system busy error
Browse files Browse the repository at this point in the history
  • Loading branch information
bitgamma committed Nov 17, 2021
1 parent 7548329 commit 31e057d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/StatusKeycard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class StatusKeycard: RCTEventEmitter {
let nsError = error as NSError
if nsError.code == 200 && nsError.domain == "NFCError" {
self.sendEvent(withName: "keyCardOnNFCUserCancelled", body: nil)
} else if nsError.code == 201 && nsError.domain == "NFCError" {
} else if (nsError.code == 201 || nsError.code == 203) && (nsError.domain == "NFCError") {
self.sendEvent(withName: "keyCardOnNFCTimeout", body: nil)
}
}
Expand Down

0 comments on commit 31e057d

Please sign in to comment.