From 78fb49a6fcfd3404d3dcc28e500797e441ed6611 Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Tue, 30 Jan 2024 16:45:39 -0800 Subject: [PATCH] refactor: only display UPC update links when no stateDataError --- web/components/UserProfile/DropdownContent.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/components/UserProfile/DropdownContent.vue b/web/components/UserProfile/DropdownContent.vue index 1a881a462..00e24c6ba 100644 --- a/web/components/UserProfile/DropdownContent.vue +++ b/web/components/UserProfile/DropdownContent.vue @@ -113,7 +113,8 @@ const links = computed(():UserProfileLink[] => { }] : []), - ...([updateOsButton.value]), + // ensure we only show the update button when we don't have an error + ...(!stateDataError.value ? [updateOsButton.value] : []), // connect plugin links ...(registered.value && connectPluginInstalled.value