From 5bca465277adff4b983b1b658b03eb4024570adb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20R=C3=A9?= Date: Thu, 30 Jul 2026 12:18:51 +0200 Subject: [PATCH] Fix lint issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Émile Ré --- packages/relay/src/useMutation.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/relay/src/useMutation.ts b/packages/relay/src/useMutation.ts index 03fd8d94c..59f52c1ce 100644 --- a/packages/relay/src/useMutation.ts +++ b/packages/relay/src/useMutation.ts @@ -87,10 +87,10 @@ export function createUseMutation(useNotifier: () => MutationNotifier) { (config: UseMutationConfig, overrides?: MutationFeedback): Promise => { const successMessage = overrides?.successMessage ?? baseSuccess; const errorToast = overrides?.errorToast ?? baseErrorToast; - const continueUrl = - overrides?.continueUrl - ?? baseContinueUrl - ?? (typeof window !== "undefined" ? window.location.href : ""); + const continueUrl + = overrides?.continueUrl + ?? baseContinueUrl + ?? (typeof window !== "undefined" ? window.location.href : ""); function notifyError(error: Error | PayloadError) { if (errorToast === false) { @@ -128,8 +128,8 @@ export function createUseMutation(useNotifier: () => MutationNotifier) { } if (errors && errors.length > 0) { const [payloadError] = errors; - const error = - payloadError instanceof Error + const error + = payloadError instanceof Error ? payloadError : new Error(payloadError.message); if (!consumeFailure(error)) {