fix calculation of instance-info.isSuspended when instance is null

This commit is contained in:
Hazelnoot 2024-10-11 14:07:31 -04:00
parent 148bf98f21
commit b27b398717

View file

@ -275,7 +275,7 @@ async function fetch(): Promise<void> {
host: props.host, host: props.host,
}); });
suspensionState.value = instance.value?.suspensionState ?? 'none'; suspensionState.value = instance.value?.suspensionState ?? 'none';
isSuspended.value = instance.value?.suspensionState !== 'none'; isSuspended.value = suspensionState.value !== 'none';
isBlocked.value = instance.value?.isBlocked ?? false; isBlocked.value = instance.value?.isBlocked ?? false;
isSilenced.value = instance.value?.isSilenced ?? false; isSilenced.value = instance.value?.isSilenced ?? false;
isNSFW.value = instance.value?.isNSFW ?? false; isNSFW.value = instance.value?.isNSFW ?? false;