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 } } 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, }) }, }))