From fff1f02d8ab38caf6fd48e61f11dec7fc1f08163 Mon Sep 17 00:00:00 2001 From: sevichecc <91365763+Sevichecc@users.noreply.github.com> Date: Mon, 17 Apr 2023 15:00:23 +0800 Subject: [PATCH] style: lint the code --- src/my-status.tsx | 2 +- src/simple-status.tsx | 2 +- src/utils/oauth.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/my-status.tsx b/src/my-status.tsx index e28941f..f6b0ab0 100644 --- a/src/my-status.tsx +++ b/src/my-status.tsx @@ -16,7 +16,7 @@ export default function ViewStatusCommand() { useEffect(() => { const getBookmark = async () => { try { - await getAccessToken(); + await getAccessToken(); showToast(Toast.Style.Animated, "Loading Status...ε=ε=┌( >_<)┘"); const status = await apiServer.fetchUserStatus(); setStatus(status); diff --git a/src/simple-status.tsx b/src/simple-status.tsx index 2373e84..10535d7 100644 --- a/src/simple-status.tsx +++ b/src/simple-status.tsx @@ -52,7 +52,7 @@ export default function SimpleCommand(props: CommandProps) { const init = async () => { try { await getAccessToken(); - const fqn = await LocalStorage.getItem("account-fqn") || ""; + const fqn = (await LocalStorage.getItem("account-fqn")) || ""; setState((prevState) => ({ ...prevState, fqn: fqn, diff --git a/src/utils/oauth.ts b/src/utils/oauth.ts index 2024a4c..0c35d4f 100644 --- a/src/utils/oauth.ts +++ b/src/utils/oauth.ts @@ -108,4 +108,4 @@ export async function getAccessToken(): Promise { } else { throw new Error("Failed to get valid access token"); } -} \ No newline at end of file +}