Fix cached stats not having 3d printer status
This commit is contained in:
parent
a460211809
commit
a28de294fa
|
@ -244,7 +244,7 @@ export function Home(props) {
|
|||
|
||||
const closedStat = (x) => stats && stats.closing ? moment().unix() > stats.closing['time'] ? 'Closed' : 'Open until ' + stats.closing['time_str'] : 'Unknown';
|
||||
|
||||
const printer3dStat = (x) => stats && stats.printer3d[x] ? stats.printer3d[x].state === 'Printing' ? 'Printing (' + stats.printer3d[x].progress + '%)' : stats.printer3d[x].state : 'Unknown';
|
||||
const printer3dStat = (x) => stats && stats.printer3d && stats.printer3d[x] ? stats.printer3d[x].state === 'Printing' ? 'Printing (' + stats.printer3d[x].progress + '%)' : stats.printer3d[x].state : 'Unknown';
|
||||
|
||||
const show_signup = stats?.at_protospace;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user