fix status for non authorized/pending camera

This commit is contained in:
Laurin Quast 2018-05-07 14:14:24 +02:00 committed by GitHub
parent 560c80124b
commit 9ba5a2376c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -318,7 +318,7 @@ export default class Camera extends React.Component<PropsType, StateType> {
getStatus = (): Status => {
const { isAuthorized, isAuthorizationChecked } = this.state;
return isAuthorized ? 'READY' : isAuthorizationChecked ? 'PENDING_AUTHORIZATION' : 'NOT_AUTHORIZED';
return isAuthorized ? 'READY' : isAuthorizationChecked ? 'NOT_AUTHORIZED' : 'PENDING_AUTHORIZATION';
}
// FaCC = Function as Child Component;