fix(ui): check for recordings
This commit is contained in:
parent
4d35e996fa
commit
b6bbc12698
1 changed files with 2 additions and 1 deletions
|
|
@ -118,8 +118,9 @@ interface Props {
|
||||||
|
|
||||||
function PrivateRoutes(props: Props) {
|
function PrivateRoutes(props: Props) {
|
||||||
const { onboarding, sites, siteId } = props;
|
const { onboarding, sites, siteId } = props;
|
||||||
|
const hasRecordings = sites.some(s => s.recorded);
|
||||||
const redirectToOnboarding =
|
const redirectToOnboarding =
|
||||||
!onboarding && localStorage.getItem(GLOBAL_HAS_NO_RECORDINGS) === 'true';
|
!onboarding && (localStorage.getItem(GLOBAL_HAS_NO_RECORDINGS) === 'true' || !hasRecordings);
|
||||||
const siteIdList: any = sites.map(({ id }) => id).toJS();
|
const siteIdList: any = sites.map(({ id }) => id).toJS();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue