From d03d5600eceeb9946a0dfe4945fba3d7d181d8f7 Mon Sep 17 00:00:00 2001 From: Zhiyuan Zheng Date: Tue, 16 Mar 2021 23:18:02 +0100 Subject: [PATCH] Correct typo --- src/utils/slices/instancesSlice.ts | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/utils/slices/instancesSlice.ts b/src/utils/slices/instancesSlice.ts index 5f203148..daf24926 100644 --- a/src/utils/slices/instancesSlice.ts +++ b/src/utils/slices/instancesSlice.ts @@ -31,8 +31,8 @@ export type Instance = { } push: | { - global: { loading: boolean; value: true } - decode: { loading: boolean; value: boolean } + global: { loading: boolean; value: boolean } + decode: { loading: boolean; value: true } alerts: { follow: { loading: boolean @@ -55,15 +55,17 @@ export type Instance = { value: Mastodon.PushSubscription['alerts']['poll'] } } - keys: { - auth: string - public: string - private: string - } + keys: + | { + auth: string + public: string + private: string + } + | undefined } | { - global: { loading: boolean; value: false } - decode: { loading: boolean; value: boolean } + global: { loading: boolean; value: boolean } + decode: { loading: boolean; value: false } alerts: { follow: { loading: boolean