Skip to content

Commit ff3f840

Browse files
committed
Fixes typo
1 parent 014d0d7 commit ff3f840

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/features/docs/view/Swagger.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const Swagger = ({ url }: { url: string }) => {
88
const [isLoading, setLoading] = useState(true)
99
const [spec, setSpec] = useState<string | undefined>(undefined)
1010

11-
const unkpgUrl = "https://unpkg.com/[email protected]"
11+
const unpkgUrl = "https://unpkg.com/[email protected]"
1212

1313
useEffect(() => {
1414
fetch(url)
@@ -26,7 +26,7 @@ const Swagger = ({ url }: { url: string }) => {
2626
}
2727

2828
const script = document.createElement("script")
29-
script.src = `${unkpgUrl}/swagger-ui-bundle.js`
29+
script.src = `${unpkgUrl}/swagger-ui-bundle.js`
3030
script.async = true
3131
script.onload = () => {
3232
const SwaggerUI = window.SwaggerUIBundle
@@ -44,7 +44,7 @@ const Swagger = ({ url }: { url: string }) => {
4444

4545
const link = document.createElement("link")
4646
link.rel = "stylesheet"
47-
link.href = `${unkpgUrl}/swagger-ui.css`
47+
link.href = `${unpkgUrl}/swagger-ui.css`
4848
document.head.appendChild(link)
4949

5050
return () => {

0 commit comments

Comments
 (0)