Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/correct typos in batch bridge store #1297

Open
wants to merge 2 commits into
base: sepolia
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/services/canvasService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}
Expand Down
16 changes: 8 additions & 8 deletions src/stores/batchBridgeStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<BatchBridgeStore>()((set, get) => ({
Expand All @@ -40,11 +40,11 @@ const useBatchBridgeStore = create<BatchBridgeStore>()((set, get) => ({
maxDelayPerBatch: 0n,
safeBridgeGasLimit: 0n,
},
depositAmountIsVaild: true,
depositAmountIsValid: true,

changeBridgeSummaryType: bridgeSummaryType => {
changeBridgeSummaryType: depositType => {
set({
bridgeSummaryType,
bridgeSummaryType: depositType,
})
},

Expand All @@ -58,9 +58,9 @@ const useBatchBridgeStore = create<BatchBridgeStore>()((set, get) => ({
batchDepositConfig,
})
},
changeDepositAmountIsVaild: depositAmountIsVaild => {
changeDepositAmountIsValid: depositAmountIsValid => {
set({
depositAmountIsVaild,
depositAmountIsValid,
})
},
}))
Expand Down