Skip to content

Commit 04cada9

Browse files
vicbjamesopstad
andauthored
Update packages/vite-plugin-cloudflare/playground/spa-with-api/src/App.tsx
Co-authored-by: James Opstad <13586373+jamesopstad@users.noreply.github.com>
1 parent cd0bdf3 commit 04cada9

File tree

1 file changed

+1
-2
lines changed
  • packages/vite-plugin-cloudflare/playground/spa-with-api/src

1 file changed

+1
-2
lines changed

packages/vite-plugin-cloudflare/playground/spa-with-api/src/App.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ function App() {
3232
<div className="card">
3333
<button
3434
onClick={() => {
35-
// eslint-disable-next-line @typescript-eslint/no-floating-promises
36-
fetch("/api/")
35+
void fetch("/api/")
3736
.then((res) => res.json() as Promise<{ name: string }>)
3837
.then((data) => setName(data.name));
3938
}}

0 commit comments

Comments
 (0)