Homepage: don't wait for prefs if incognito
It causes the "empty homepage" splash to briefly appear.
This commit is contained in:
parent
093594de3f
commit
616309301d
1 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@ function HomePage(props: Props) {
|
|||
|
||||
// TODO: probably need memo, or incorporate into GetLinksData.
|
||||
let sortedRowData: Array<RowDataItem> = [];
|
||||
if (homepageOrder.active) {
|
||||
if (homepageOrder.active && authenticated) {
|
||||
homepageOrder.active.forEach((key) => {
|
||||
const item = rowData.find((data) => data.id === key);
|
||||
if (item) {
|
||||
|
@ -220,7 +220,7 @@ function HomePage(props: Props) {
|
|||
</>
|
||||
)}
|
||||
|
||||
{sortedRowData.length === 0 && (
|
||||
{sortedRowData.length === 0 && authenticated && (
|
||||
<div className="empty--centered">
|
||||
<Yrbl
|
||||
alwaysShow
|
||||
|
|
Loading…
Reference in a new issue