Skip to content

Commit

Permalink
Merge pull request #279 from Outblock:259-feature-autofill-pw-in-dev-…
Browse files Browse the repository at this point in the history
…mode-from-env-2

Added switchunlock as well
  • Loading branch information
tombeckenham authored Dec 12, 2024
2 parents 640e4ba + 1a8618e commit 74bbc2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
"javascript.updateImportsOnFileMove.enabled": "always",
"typescript.updateImportsOnFileMove.enabled": "always",
"eslint.useFlatConfig": true,
"githubPullRequests.overrideDefaultBranch": "dev"
"githubPullRequests.overrideDefaultBranch": "dev",
"githubIssues.issueBranchTitle": "${issueNumber}-${sanitizedIssueTitle}"
}
5 changes: 4 additions & 1 deletion src/ui/views/SwitchUnlock/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ const useStyles = makeStyles(() => ({
},
}));

const DEFAULT_PASSWORD =
process.env.NODE_ENV === 'development' ? process.env.DEV_PASSWORD || '' : '';

const SwitchUnlock = () => {
const wallet = useWallet();
const classes = useStyles();
Expand All @@ -43,7 +46,7 @@ const SwitchUnlock = () => {
// const { t } = useTranslation();
const [showError, setShowError] = useState(false);
const [isLoading, setLoading] = useState(false);
const [password, setPassword] = useState('');
const [password, setPassword] = useState(DEFAULT_PASSWORD);
const [resetPop, setResetPop] = useState<boolean>(false);

useEffect(() => {
Expand Down

0 comments on commit 74bbc2a

Please sign in to comment.