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 +}