From 30def9afc209d309791ee00679920b422ba4195f 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 992610381..bd8882195 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);