Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkokari-gtyih authored May 1, 2024
1 parent 2017f91 commit 8c5e564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend/src/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export async function fetchInstance(force = false): Promise<Misskey.entities.Met
const cachedAt = miLocalStorage.getItem('instanceCachedAt') ? parseInt(miLocalStorage.getItem('instanceCachedAt')!) : 0;

if (Date.now() - cachedAt < 1000 * 60 * 60) {
return;
return instance;
}
}

Expand Down

0 comments on commit 8c5e564

Please sign in to comment.