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(() => {
|
useEffect(() => {
|
||||||
const getBookmark = async () => {
|
const getBookmark = async () => {
|
||||||
try {
|
try {
|
||||||
await getAccessToken();
|
await getAccessToken();
|
||||||
showToast(Toast.Style.Animated, "Loading Status...ε=ε=┌( >_<)┘");
|
showToast(Toast.Style.Animated, "Loading Status...ε=ε=┌( >_<)┘");
|
||||||
const status = await apiServer.fetchUserStatus();
|
const status = await apiServer.fetchUserStatus();
|
||||||
setStatus(status);
|
setStatus(status);
|
||||||
|
|
|
@ -52,7 +52,7 @@ export default function SimpleCommand(props: CommandProps) {
|
||||||
const init = async () => {
|
const init = async () => {
|
||||||
try {
|
try {
|
||||||
await getAccessToken();
|
await getAccessToken();
|
||||||
const fqn = await LocalStorage.getItem<string>("account-fqn") || "";
|
const fqn = (await LocalStorage.getItem<string>("account-fqn")) || "";
|
||||||
setState((prevState) => ({
|
setState((prevState) => ({
|
||||||
...prevState,
|
...prevState,
|
||||||
fqn: fqn,
|
fqn: fqn,
|
||||||
|
|
|
@ -108,4 +108,4 @@ export async function getAccessToken(): Promise<string> {
|
||||||
} else {
|
} else {
|
||||||
throw new Error("Failed to get valid access token");
|
throw new Error("Failed to get valid access token");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue