Skip to content

Commit 4184dd1

Browse files
authored
Fix Error Handling Example in Conditional Rendering Documentation (#750)
1 parent f89de89 commit 4184dd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/concepts/control-flow/conditional-rendering.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import { Show } from "solid-js"
4343

4444
<Show when={data.loading}>
4545
<div>Loading...</div>
46-
<Show when={!data.error}>
46+
<Show when={data.error}>
4747
<div>Error: {data.error}</div>
4848
</Show>
4949
</Show>
@@ -85,4 +85,4 @@ import { Switch, Match } from "solid-js"
8585
<p>Outcome 2</p>
8686
</Match>
8787
</Switch>
88-
```
88+
```

0 commit comments

Comments
 (0)