Skip to content

Commit

Permalink
fix image endpoint return value #1081
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuadkitenge committed Dec 4, 2024
1 parent c704a36 commit 23fd79c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mocks/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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)}`,
};
}
Expand Down

0 comments on commit 23fd79c

Please sign in to comment.