Skip to content

Commit

Permalink
Cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
youssef-lr committed Oct 21, 2024
1 parent 172e11f commit 85a9dd7
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/pages/settings/Wallet/ReportVirtualCardFraudPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,9 @@ function ReportVirtualCardFraudPage({
};

const handleValidateCodeEntered = (validateCode: string) => {
Card.reportVirtualExpensifyCardFraud(virtualCard.cardID, validateCode)
.then((value) => {})
.catch((error) => {
console.log('error ', error);
})
.finally(() => {
setIsValidateCodeActionModalVisible(false);
});
Card.reportVirtualExpensifyCardFraud(virtualCard.cardID, validateCode).finally(() => {
setIsValidateCodeActionModalVisible(false);
});
};

return (
Expand Down

0 comments on commit 85a9dd7

Please sign in to comment.