Commit 1a76761
committed
fix: mark Home component as async to support await
The example used `await getLogtoContext()` inside a normal function,
which caused a TypeScript error (TS1308). 'await' expressions are only
allowed within async functions and at the top levels of modules.
Marking the Home component as async resolves the error.1 parent 179585c commit 1a76761
1 file changed
+1
-3
lines changedLines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | 154 | | |
157 | 155 | | |
158 | 156 | | |
0 commit comments