mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-26 12:26:45 +00:00
[Glitch] Prevent "invalid access token" error when opening Mastodon while logged out
Port 807e1254e6 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -62,7 +62,8 @@ export const checkAnnualReport = createAppThunk(
|
||||
`${annualReportSlice.name}/checkAnnualReport`,
|
||||
(_arg: unknown, { dispatch, getState }) => {
|
||||
const year = selectWrapstodonYear(getState());
|
||||
if (!year) {
|
||||
const me = getState().meta.get('me') as string;
|
||||
if (!year || !me) {
|
||||
return;
|
||||
}
|
||||
void dispatch(fetchReportState());
|
||||
|
||||
Reference in New Issue
Block a user