Still need these fallbacks for now

This commit is contained in:
Lim Chee Aun 2023-02-11 18:55:21 +08:00
parent b8a938b6d8
commit d9564bff72
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,7 @@ function Status({
const sKey = statusKey(statusID, instance); const sKey = statusKey(statusID, instance);
const snapStates = useSnapshot(states); const snapStates = useSnapshot(states);
if (!status) { if (!status) {
status = snapStates.statuses[sKey]; status = snapStates.statuses[sKey] || snapStates.statuses[statusID];
} }
if (!status) { if (!status) {
return null; return null;

View file

@ -287,7 +287,7 @@ function StatusPage() {
}; };
}, []); }, []);
const heroStatus = snapStates.statuses[sKey]; const heroStatus = snapStates.statuses[sKey] || snapStates.statuses[id];
const heroDisplayName = useMemo(() => { const heroDisplayName = useMemo(() => {
// Remove shortcodes from display name // Remove shortcodes from display name
if (!heroStatus) return ''; if (!heroStatus) return '';