@1889ca/ui 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1889ca/ui",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "module": "src/index.js",
@@ -23,7 +23,7 @@ export default function PasskeyLoginPage({ title, subtitle, login, register, dev
23
23
  const [error, setError] = useState('');
24
24
  const [loading, setLoading] = useState(false);
25
25
 
26
- const showDev = devMode !== undefined ? devMode : (typeof import !== 'undefined' && import.meta?.env?.DEV);
26
+ const showDev = devMode !== undefined ? devMode : import.meta?.env?.DEV;
27
27
 
28
28
  async function handleLogin() {
29
29
  setError('');