Fix prettier issues
This commit is contained in:
parent
71a0e18049
commit
b5039d14e2
@ -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>;
|
||||
|
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user