Skip to content

Commit

Permalink
Fix sendAuthEvent error checking condition. (#3188)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuchenshi committed Mar 4, 2021
1 parent 1d3e5e9 commit 7984151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/emulator/auth/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export function registerHandlers(
authEvent: authEvent || { type: 'unknown', error: { code: 'auth/no-auth-event' } },
}, function(responses) {
if (!responses || !responses.length ||
!responses[responses.length - 1].status === 'ACK') {
responses[responses.length - 1].status !== 'ACK') {
return alert("Auth Emulator Internal Error: Sending authEvent failed.");
}
}, gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER);
Expand Down

0 comments on commit 7984151

Please sign in to comment.