From 23fd79c10d20fd8b9559baee2d3b4a411cfa6b5a Mon Sep 17 00:00:00 2001 From: Joshua Kitenge Date: Wed, 4 Dec 2024 13:21:38 +0000 Subject: [PATCH] fix image endpoint return value #1081 --- src/mocks/handlers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mocks/handlers.ts b/src/mocks/handlers.ts index 7f56d59fc..830a639f0 100644 --- a/src/mocks/handlers.ts +++ b/src/mocks/handlers.ts @@ -1035,7 +1035,7 @@ export const handlers = [ let image; if (Number(id) % 2 === 0) { image = { - ...ImagesJSON, + ...ImagesJSON[0], url: `${window.location.origin}/logo192.png?text=${encodeURIComponent(id as string)}`, }; } else { @@ -1046,7 +1046,7 @@ export const handlers = [ }; } else { image = { - ...ImagesJSON, + ...ImagesJSON[1], url: `${window.location.origin}/images/stfc-logo-blue-text.png?text=${encodeURIComponent(id as string)}`, }; }