Skip to content

Commit fee729d

Browse files
DutchBentjeerddie
andauthored
Update frontend/apps/example/src/app/page.tsx
Co-authored-by: tjeerddie <[email protected]>
1 parent 9a4ebd2 commit fee729d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

frontend/apps/example/src/app/page.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,8 @@ export default function Home() {
4343
) {
4444
const data = await fetchResult.json();
4545
return new Promise<Record<string, unknown>>((resolve) => {
46-
if (fetchResult.status === 510) {
47-
resolve({ ...data, status: 510 });
48-
}
49-
if (fetchResult.status === 400) {
50-
resolve({ ...data, status: 400 });
46+
if (fetchResult.status === 510 || fetchResult.status === 400) {
47+
resolve({ ...data, status: fetchResult.status });
5148
}
5249
if (fetchResult.status === 200) {
5350
resolve({ status: 200, data });

0 commit comments

Comments
 (0)