diff --git a/messages/JsonMessages/ErrorApiData.ts b/messages/JsonMessages/ErrorApiData.ts index 31dd3cb4..a50d72f5 100644 --- a/messages/JsonMessages/ErrorApiData.ts +++ b/messages/JsonMessages/ErrorApiData.ts @@ -15,7 +15,7 @@ export const isErrorApiData = z.object({ urlToRedirect: z.optional(z.nullable(z.string())), buttonTitle: z.optional(z.nullable(z.string())), timeToRetry: z.optional(z.nullable(z.bigint())), - canRetryManual: z.optional(z.nullable(z.boolean())) + canRetryManual: z.optional(z.nullable(z.boolean())), }); export type ErrorApiData = z.infer; diff --git a/pusher/src/Services/SocketManager.ts b/pusher/src/Services/SocketManager.ts index 3bfb6ae3..54967080 100644 --- a/pusher/src/Services/SocketManager.ts +++ b/pusher/src/Services/SocketManager.ts @@ -656,7 +656,8 @@ export class SocketManager implements ZoneEventListener { if (error.urlToRedirect) errorMessage.setUrltoredirect(error.urlToRedirect); if (error.buttonTitle) errorMessage.setButtontitle(error.buttonTitle); - if (error.canRetryManual !== undefined && null !== error.canRetryManual) errorMessage.setCanretrymanual(error.canRetryManual); + if (error.canRetryManual !== undefined && null !== error.canRetryManual) + errorMessage.setCanretrymanual(error.canRetryManual); if (error.timeToRetry && !isNaN(Number(error.timeToRetry))) errorMessage.setTimetoretry(Number(error.timeToRetry));