Skip to content

Commit

Permalink
Merge pull request #1887 from dev-protocol/patch-checkout-localisation
Browse files Browse the repository at this point in the history
fix: Checkout Modal & Result localisation
  • Loading branch information
KukretiShubham authored Feb 23, 2025
2 parents 59d5ba2 + 275a910 commit 8023a6f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ui/components/Checkout/Checkout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const feeAmount = ref<UndefinedOr<number>>(undefined)
const chain = ref<UndefinedOr<number>>(undefined)
const previewImageSrc = ref<UndefinedOr<string>>(props.itemImageSrc)
const previewVideoSrc = ref<UndefinedOr<string>>(props.itemVideoSrc)
const previewName = ref<UndefinedOr<string>>(props.itemName)
const onChainPreviewName = ref<UndefinedOr<string>>(props.itemName)
const stakingAmount = ref<UndefinedOr<number>>(undefined)
const directAmount = ref<UndefinedOr<number>>(undefined)
const isCheckingAccessControl = ref<boolean>(false)
Expand Down Expand Up @@ -143,6 +143,9 @@ const approveNeeded = ref<UndefinedOr<boolean>>(useERC20.value)
const htmlDescription: ComputedRef<UndefinedOr<string>> = computed(() => {
return props.description && markdownToHtml(props.description)
})
const previewName: ComputedRef<UndefinedOr<string>> = computed(() => {
return props.itemName ?? onChainPreviewName.value
})
const htmlVerificationFlow: ComputedRef<UndefinedOr<string>> = computed(() => {
const accountAddress = account.value ?? ''
const emailAddress = email.value ?? ''
Expand Down Expand Up @@ -546,7 +549,7 @@ onMounted(async () => {
return undefined
})
previewImageSrc.value = sTokens?.image
previewName.value = sTokens?.name
onChainPreviewName.value = sTokens?.name
}
)
try {
Expand Down

0 comments on commit 8023a6f

Please sign in to comment.