Fix prettier issues

This commit is contained in:
CEC 2022-04-19 17:35:47 +02:00
parent 71a0e18049
commit b5039d14e2
2 changed files with 3 additions and 2 deletions

View File

@ -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<typeof isErrorApiData>;

View File

@ -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));