Skip to content

Commit

Permalink
Merge pull request #3666 from LiskHQ/3593-sign-msign-tx-revalidation
Browse files Browse the repository at this point in the history
Revalidate multisignature transaction - Closes #3593
  • Loading branch information
usama authored Jul 1, 2021
2 parents 605407c + 27dd8e2 commit 193539b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ const ImportData = ({ t, nextStep }) => {
try {
const parsedInput = JSON.parse(input);
setTransaction(parsedInput);
setError(undefined);
} catch (e) {
setTransaction(undefined);
setError('Invalid transaction');
}
};
Expand All @@ -44,6 +46,8 @@ const ImportData = ({ t, nextStep }) => {
};
}, []);

console.log(transaction);

return (
<section>
<Box className={styles.boxContainer}>
Expand All @@ -68,7 +72,7 @@ const ImportData = ({ t, nextStep }) => {
<div className={`${styles.textAreaContainer} ${error && styles.error} ${transaction && styles.filled}`}>
<textarea
onPaste={onPaste}
value={JSON.stringify(transaction)}
value={transaction ? JSON.stringify(transaction) : ''}
readOnly
/>
<Feedback
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@

&.error {
border: 1px solid var(--error-background-color);

& > textarea {
background: none;
}
}

&.filled {
Expand Down

0 comments on commit 193539b

Please sign in to comment.