Skip to content

Commit

Permalink
fix: pr comment
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleyyconsensys committed Nov 8, 2023
1 parent 871e03c commit f6b30ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/components/UI/Transactions/RetryModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ interface Props {
retryIsOpen: boolean;
onConfirmPress: () => void;
onCancelPress: () => void;
errorMsg: string | undefined;
errorMsg?: string;
}

const RetryModal = ({
Expand Down
4 changes: 2 additions & 2 deletions app/components/UI/Transactions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ class Transactions extends PureComponent {

handleSpeedUpTransactionFailure = (e) => {
const speedUpTxId = this.speedUpTxId;
const message = e && e instanceof TransactionError ? e.message : undefined;
const message = e instanceof TransactionError ? e.message : undefined;
Logger.error(e, { message: `speedUpTransaction failed `, speedUpTxId });
InteractionManager.runAfterInteractions(this.toggleRetry(message));
this.setState({
Expand All @@ -485,7 +485,7 @@ class Transactions extends PureComponent {

handleCancelTransactionFailure = (e) => {
const cancelTxId = this.cancelTxId;
const message = e && e instanceof TransactionError ? e.message : undefined;
const message = e instanceof TransactionError ? e.message : undefined;
Logger.error(e, { message: `cancelTransaction failed `, cancelTxId });
InteractionManager.runAfterInteractions(this.toggleRetry(message));
this.setState({
Expand Down

0 comments on commit f6b30ce

Please sign in to comment.