From 995b8a079812ee95e49e86aaad99f160f5fd1484 Mon Sep 17 00:00:00 2001 From: Min Qian Lu <59981815+minqianlu@users.noreply.github.com> Date: Tue, 21 May 2024 10:22:12 -0400 Subject: [PATCH] more linting --- .../create-drop/contexts/CreateNftDropContext.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/features/create-drop/contexts/CreateNftDropContext.tsx b/src/features/create-drop/contexts/CreateNftDropContext.tsx index 12ac7264..8fdb5c04 100644 --- a/src/features/create-drop/contexts/CreateNftDropContext.tsx +++ b/src/features/create-drop/contexts/CreateNftDropContext.tsx @@ -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) => ({ + ...val, + confirmed: true + })); + get(NFT_ATTEMPT_KEY).then((val) => console.log("Updated NFT_ATTEMPT_KEY", val)); const wallet = await window.selector.wallet();