mirror of
https://github.com/Sevichecc/raycast-akkoma-extension.git
synced 2025-04-30 14:49:29 +08:00
style: lint the code
This commit is contained in:
parent
608c30a41d
commit
fff1f02d8a
3 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -52,7 +52,7 @@ export default function SimpleCommand(props: CommandProps) {
|
|||
const init = async () => {
|
||||
try {
|
||||
await getAccessToken();
|
||||
const fqn = await LocalStorage.getItem<string>("account-fqn") || "";
|
||||
const fqn = (await LocalStorage.getItem<string>("account-fqn")) || "";
|
||||
setState((prevState) => ({
|
||||
...prevState,
|
||||
fqn: fqn,
|
||||
|
|
|
@ -108,4 +108,4 @@ export async function getAccessToken(): Promise<string> {
|
|||
} else {
|
||||
throw new Error("Failed to get valid access token");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue