Skip to content

Commit

Permalink
Correctly parse password protection env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
conache committed Feb 13, 2025
1 parent 5b6007f commit a875a05
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import { onMounted, ref } from 'vue';
import TxDialog from './components/TxDialog.vue';
import PasswordProtectionModal from './components/PasswordProtectionModa.vue';
const passwordProtectionEnabled =
import.meta.env.VITE_PASSWORD_PROTECTION_ENABLED ?? false;
const passwordProtectionEnabled = Boolean(
import.meta.env.VITE_PASSWORD_PROTECTION_ENABLED === 'true',
);
const isAuthenticated = ref(!passwordProtectionEnabled);
Expand Down

0 comments on commit a875a05

Please sign in to comment.