Change type of unauthorized (#2123)
* Change type of unauthorized * Fix redirect on received erroScreenMessage from API
This commit is contained in:
@@ -34,6 +34,12 @@ export const isErrorApiRedirectData = z.object({
|
||||
|
||||
export const isErrorApiUnauthorizedData = z.object({
|
||||
type: z.literal("unauthorized"),
|
||||
code: z.string(),
|
||||
title: z.string(),
|
||||
subtitle: z.string(),
|
||||
details: z.string(),
|
||||
image: z.string(),
|
||||
buttonTitle: z.optional(z.nullable(z.string())),
|
||||
});
|
||||
|
||||
export const isErrorApiData = z.discriminatedUnion("type", [
|
||||
|
||||
Reference in New Issue
Block a user