From e9949ab1d1ddc8f5ef5948d1eee99f170f00ead0 Mon Sep 17 00:00:00 2001 From: Chris Wilkinson Date: Tue, 30 Jul 2024 09:28:40 +0100 Subject: [PATCH] Fix a copy/paste mistake Refs #1814, 329201225e18961afecb8519db1475d2c63d0c51 --- src/prereview-coar-notify/new-prereview.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prereview-coar-notify/new-prereview.ts b/src/prereview-coar-notify/new-prereview.ts index 514b0e666..6ae4c6e75 100644 --- a/src/prereview-coar-notify/new-prereview.ts +++ b/src/prereview-coar-notify/new-prereview.ts @@ -28,6 +28,6 @@ export const postNewPrereview = ({ F.send, RTE.mapLeft(() => 'network'), RTE.filterOrElseW(F.hasStatus(Status.Created), () => 'non-201-response' as const), - RTE.orElseFirstW(RTE.fromReaderIOK(flow(error => ({ error }), L.errorP('Failed to get recent review requests')))), + RTE.orElseFirstW(RTE.fromReaderIOK(flow(error => ({ error }), L.errorP('Failed to post new PREreview')))), RTE.bimap(() => 'unavailable' as const, constVoid), )