Skip to content

Commit

Permalink
removed duplicated isLoading call
Browse files Browse the repository at this point in the history
  • Loading branch information
JonYeb committed Dec 13, 2023
1 parent 8785325 commit f45a8ce
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/CardFields/CardFieldsMask.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,11 @@ export const CardFieldsMask: React.FC<CardFieldsProps> = ({
approveData as ApproveVaultSetupTokenData
).catch((err) => {
setPaying(false);
isLoading(false);
errorFunc(err, isLoading, notify, t);
});
} else {
handleOnApprove(approveData as CustomOnApproveData).catch((err) => {
setPaying(false);
isLoading(false);
errorFunc(err, isLoading, notify, t);
});
}
Expand Down Expand Up @@ -136,7 +134,6 @@ export const CardFieldsMask: React.FC<CardFieldsProps> = ({
},
onError: function (error: Record<string, never>) {
setPaying(false);
isLoading(false);
errorFunc(error, isLoading, notify, t);
},
});
Expand All @@ -148,7 +145,6 @@ export const CardFieldsMask: React.FC<CardFieldsProps> = ({

cardField.submit().catch((err: Record<string, never>) => {
errorFunc(err, isLoading, notify, t);
isLoading(false);
setPaying(false);
});
};
Expand Down

0 comments on commit f45a8ce

Please sign in to comment.