We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a4ebd2 commit fee729dCopy full SHA for fee729d
frontend/apps/example/src/app/page.tsx
@@ -43,11 +43,8 @@ export default function Home() {
43
) {
44
const data = await fetchResult.json();
45
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 });
+ if (fetchResult.status === 510 || fetchResult.status === 400) {
+ resolve({ ...data, status: fetchResult.status });
51
}
52
if (fetchResult.status === 200) {
53
resolve({ status: 200, data });
0 commit comments