From 974211034adc5a3a5ffe8d46189fd178ecb54eca Mon Sep 17 00:00:00 2001 From: betrayalove Date: Wed, 2 Oct 2024 20:02:55 +0500 Subject: [PATCH 1/2] fix: rename parameter in fetchCanvasDetail from privider to provider --- src/services/canvasService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/canvasService.ts b/src/services/canvasService.ts index 728067116..efb7669e8 100644 --- a/src/services/canvasService.ts +++ b/src/services/canvasService.ts @@ -214,9 +214,9 @@ const getBadgeOrder = async profileContract => { } } -const fetchCanvasDetail = async (privider, othersAddress, profileAddress) => { - const { profileContract, name } = await queryCanvasUsername(privider, profileAddress) - const userBadges = await queryUserBadgesWrapped(privider, othersAddress) +const fetchCanvasDetail = async (provider, othersAddress, profileAddress) => { + const { profileContract, name } = await queryCanvasUsername(provider, profileAddress) + const userBadges = await queryUserBadgesWrapped(provider, othersAddress) const { orderedAttachedBadges, attachedBadges, badgeOrder } = await getOrderedAttachedBadges(profileContract) return { name, profileContract, userBadges, attachedBadges, orderedAttachedBadges, badgeOrder } } From 83ff1f34162f24dceac837a7809c2b36d1c18976 Mon Sep 17 00:00:00 2001 From: betrayalove Date: Wed, 2 Oct 2024 20:08:09 +0500 Subject: [PATCH 2/2] fix: correct typos in depositType and depositAmountIsValid in BatchBridgeStore --- src/stores/batchBridgeStore.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/stores/batchBridgeStore.ts b/src/stores/batchBridgeStore.ts index d68b45b37..b2933b81a 100644 --- a/src/stores/batchBridgeStore.ts +++ b/src/stores/batchBridgeStore.ts @@ -22,12 +22,12 @@ interface BatchBridgeStore { bridgeSummaryType: BridgeSummaryType depositBatchMode: DepositBatchMode batchDepositConfig: BatchDepositConfig - depositAmountIsVaild: boolean + depositAmountIsValid: boolean - changeBridgeSummaryType: (depositTpye: BridgeSummaryType) => void + changeBridgeSummaryType: (depositType: BridgeSummaryType) => void changeDepositBatchMode: (depositBatchMode: DepositBatchMode) => void changeBatchDepositConfig: (batchDepositConfig: BatchDepositConfig) => void - changeDepositAmountIsVaild: (depositAmountIsVaild: boolean) => void + changeDepositAmountIsValid: (depositAmountIsValid: boolean) => void } const useBatchBridgeStore = create()((set, get) => ({ @@ -40,11 +40,11 @@ const useBatchBridgeStore = create()((set, get) => ({ maxDelayPerBatch: 0n, safeBridgeGasLimit: 0n, }, - depositAmountIsVaild: true, + depositAmountIsValid: true, - changeBridgeSummaryType: bridgeSummaryType => { + changeBridgeSummaryType: depositType => { set({ - bridgeSummaryType, + bridgeSummaryType: depositType, }) }, @@ -58,9 +58,9 @@ const useBatchBridgeStore = create()((set, get) => ({ batchDepositConfig, }) }, - changeDepositAmountIsVaild: depositAmountIsVaild => { + changeDepositAmountIsValid: depositAmountIsValid => { set({ - depositAmountIsVaild, + depositAmountIsValid, }) }, }))