From b27b398717233014d4748ad977fccbc027c59cdf Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Fri, 11 Oct 2024 14:07:31 -0400 Subject: [PATCH] fix calculation of `instance-info.isSuspended` when `instance` is null --- packages/frontend/src/pages/instance-info.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/pages/instance-info.vue b/packages/frontend/src/pages/instance-info.vue index 26b894b50a..bc3e93ad7d 100644 --- a/packages/frontend/src/pages/instance-info.vue +++ b/packages/frontend/src/pages/instance-info.vue @@ -275,7 +275,7 @@ async function fetch(): Promise { host: props.host, }); suspensionState.value = instance.value?.suspensionState ?? 'none'; - isSuspended.value = instance.value?.suspensionState !== 'none'; + isSuspended.value = suspensionState.value !== 'none'; isBlocked.value = instance.value?.isBlocked ?? false; isSilenced.value = instance.value?.isSilenced ?? false; isNSFW.value = instance.value?.isNSFW ?? false;