Remember uploaded images
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
export function parseError(e: unknown): string {
|
||||
if (e instanceof Error && e.name === 'FetchError' && 'statusCode' in e) {
|
||||
if (e instanceof Error && 'statusCode' in e) {
|
||||
switch (e.statusCode) {
|
||||
case 401:
|
||||
return 'error.401';
|
||||
|
||||
Reference in New Issue
Block a user