Add team creation, team join and debug login screen
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
export function parseError(e: unknown): string {
|
||||
if (e instanceof Error && e.name === 'FetchError' && 'statusCode' in e) {
|
||||
switch (e.statusCode) {
|
||||
case 401:
|
||||
return 'error.401';
|
||||
case 404:
|
||||
return 'error.404';
|
||||
}
|
||||
}
|
||||
return 'error.default';
|
||||
}
|
||||
Reference in New Issue
Block a user