diff --git a/package.json b/package.json index 1895ad2..6ea8dfb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@_because/hype", - "version": "0.1.1", + "version": "0.1.2", "module": "src/index.tsx", "type": "module", "exports": { @@ -26,4 +26,4 @@ "hono": "^4.10.4", "kleur": "^4.1.5" } -} +} \ No newline at end of file diff --git a/src/index.tsx b/src/index.tsx index 1bf03d7..a99e399 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -45,7 +45,7 @@ export class Hype< super(props) this.props = props ?? {} - if (!this.router) + if (!this.props.router) this.registerMiddleware() }