Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
fix: reset form on failed password, closes #249
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Sep 25, 2020
1 parent 3d7cef4 commit d345ca7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
"search.exclude": {
".git": true,
".eslintcache": true,
"app/dist": true,
"app/dist/**": true,
"app/main.prod.js": true,
"app/renderer.prod.js": true,
"app/main.prod.js.map": true,
"app/node_modules": true,
"dll": true,
"release": true,
"node_modules": true,
Expand Down
6 changes: 5 additions & 1 deletion app/modals/transaction/transaction-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ import { DecryptWalletForm } from './decrypt-wallet-form';
import { SignTxWithLedger } from './sign-tx-with-ledger';
import { selectPublicKey } from '@store/keys/keys.reducer';
import { FailedBroadcastError } from './failed-broadcast-error';
import { createMessageSignature } from '@blockstack/stacks-transactions/lib/authorization';

import { LedgerConnectStep } from '@hooks/use-ledger';
import { createMessageSignature } from '@blockstack/stacks-transactions/lib/authorization';

interface TxModalProps {
balance: string;
Expand Down Expand Up @@ -112,6 +113,8 @@ export const TransactionModal: FC<TxModalProps> = ({ balance, address }) => {
tx = await makeSTXTokenTransfer({ ...txDetails, senderKey: privateKey });
} catch (e) {
setDecryptionError(e);
setIsDecrypting(false);
return;
}
}

Expand All @@ -138,6 +141,7 @@ export const TransactionModal: FC<TxModalProps> = ({ balance, address }) => {
}
} catch (e) {
setHasSubmitted(false);
return;
}
}

Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "stacks-wallet",
"productName": "Stacks Wallet",
"version": "4.0.0-beta",
"version": "4.0.0-beta.2",
"description": "",
"main": "./main.prod.js",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "stacks-wallet",
"productName": "Stacks Wallet",
"version": "4.0.0-beta.1",
"version": "4.0.0-beta.2",
"description": "Stacks Wallet 2.0 — Stacking",
"prettier": "@blockstack/prettier-config",
"author": {
Expand Down

0 comments on commit d345ca7

Please sign in to comment.