mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 16:58:47 +01:00
Still need these fallbacks for now
This commit is contained in:
parent
b8a938b6d8
commit
d9564bff72
2 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ function Status({
|
|||
const sKey = statusKey(statusID, instance);
|
||||
const snapStates = useSnapshot(states);
|
||||
if (!status) {
|
||||
status = snapStates.statuses[sKey];
|
||||
status = snapStates.statuses[sKey] || snapStates.statuses[statusID];
|
||||
}
|
||||
if (!status) {
|
||||
return null;
|
||||
|
|
|
@ -287,7 +287,7 @@ function StatusPage() {
|
|||
};
|
||||
}, []);
|
||||
|
||||
const heroStatus = snapStates.statuses[sKey];
|
||||
const heroStatus = snapStates.statuses[sKey] || snapStates.statuses[id];
|
||||
const heroDisplayName = useMemo(() => {
|
||||
// Remove shortcodes from display name
|
||||
if (!heroStatus) return '';
|
||||
|
|
Loading…
Reference in a new issue