Skip to content

Commit

Permalink
Added switchunlock as well
Browse files Browse the repository at this point in the history
Closes #259
  • Loading branch information
tombeckenham committed Dec 11, 2024
1 parent ba22390 commit 1a8618e
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 1a8618e

Please sign in to comment.