From 6c4432aebacd54a269d6fe345d82dc7fca905ebf Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 1 Feb 2023 11:06:34 -0800 Subject: [PATCH] fix: update dialog --- packages/client/src/components/MkUpdated.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/client/src/components/MkUpdated.vue b/packages/client/src/components/MkUpdated.vue index 9926103817..bd88821956 100644 --- a/packages/client/src/components/MkUpdated.vue +++ b/packages/client/src/components/MkUpdated.vue @@ -5,9 +5,9 @@
✨ {{ version }} 🚀
- +
{{ i18n.ts.gotIt }} @@ -24,8 +24,9 @@ import * as os from '@/os'; const modal = $ref>(); -let newRelease = false; -let data; +let newRelease = $ref(false); +let data = $ref(Object); + os.api('release').then(res => { data = res; newRelease = (version === data?.version);