Skip to content

Commit

Permalink
more linting
Browse files Browse the repository at this point in the history
  • Loading branch information
minqianlu committed May 21, 2024
1 parent ad010e2 commit 995b8a0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/features/create-drop/contexts/CreateNftDropContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,11 @@ export const CreateNftDropProvider = ({ children }: PropsWithChildren) => {
const handleDropConfirmation = async (paymentData: PaymentData) => {
const totalRequired = paymentData.costsData[3].total;

await update(NFT_ATTEMPT_KEY, (val) => {
return { ...val, confirmed: true };
});
await update(NFT_ATTEMPT_KEY, (val) => ({

Check failure on line 208 in src/features/create-drop/contexts/CreateNftDropContext.tsx

View workflow job for this annotation

GitHub Actions / build (16.x)

Returning a void expression from an arrow function shorthand is forbidden. Please add braces to the arrow function
...val,
confirmed: true
}));

get(NFT_ATTEMPT_KEY).then((val) => console.log("Updated NFT_ATTEMPT_KEY", val));
const wallet = await window.selector.wallet();

Expand Down

0 comments on commit 995b8a0

Please sign in to comment.