Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
derrick-yyang committed Aug 4, 2023
1 parent 8c828f8 commit b772dd0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions frontend/src/APIClients/CamperAPIClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,13 @@ const sendSelectedRefundInfo = async (
): Promise<RefundDTO[]> => {
try {
const body = { selectedRefunds };
const { data } = await baseAPIClient.put(`/campers/refund/${refundCode}`, body, {
headers: { Authorization: getBearerToken() },
});
const { data } = await baseAPIClient.put(
`/campers/refund/${refundCode}`,
body,
{
headers: { Authorization: getBearerToken() },
},
);

return data;
} catch (error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const CamperRefundFooter = ({
}
});
try {
setIsLoading(true)
setIsLoading(true);
const response = await CamperAPIClient.sendSelectedRefundInfo(

Check warning on line 30 in frontend/src/components/pages/CamperRefundCancellation/CamperRefundFooter.tsx

View workflow job for this annotation

GitHub Actions / run-lint

'response' is assigned a value but never used
code,
selectedRefunds,
Expand Down

0 comments on commit b772dd0

Please sign in to comment.