Skip to content

Commit 8023a6f

Browse files
Merge pull request #1887 from dev-protocol/patch-checkout-localisation
fix: Checkout Modal & Result localisation
2 parents 59d5ba2 + 275a910 commit 8023a6f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/ui/components/Checkout/Checkout.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const feeAmount = ref<UndefinedOr<number>>(undefined)
9595
const chain = ref<UndefinedOr<number>>(undefined)
9696
const previewImageSrc = ref<UndefinedOr<string>>(props.itemImageSrc)
9797
const previewVideoSrc = ref<UndefinedOr<string>>(props.itemVideoSrc)
98-
const previewName = ref<UndefinedOr<string>>(props.itemName)
98+
const onChainPreviewName = ref<UndefinedOr<string>>(props.itemName)
9999
const stakingAmount = ref<UndefinedOr<number>>(undefined)
100100
const directAmount = ref<UndefinedOr<number>>(undefined)
101101
const isCheckingAccessControl = ref<boolean>(false)
@@ -143,6 +143,9 @@ const approveNeeded = ref<UndefinedOr<boolean>>(useERC20.value)
143143
const htmlDescription: ComputedRef<UndefinedOr<string>> = computed(() => {
144144
return props.description && markdownToHtml(props.description)
145145
})
146+
const previewName: ComputedRef<UndefinedOr<string>> = computed(() => {
147+
return props.itemName ?? onChainPreviewName.value
148+
})
146149
const htmlVerificationFlow: ComputedRef<UndefinedOr<string>> = computed(() => {
147150
const accountAddress = account.value ?? ''
148151
const emailAddress = email.value ?? ''
@@ -546,7 +549,7 @@ onMounted(async () => {
546549
return undefined
547550
})
548551
previewImageSrc.value = sTokens?.image
549-
previewName.value = sTokens?.name
552+
onChainPreviewName.value = sTokens?.name
550553
}
551554
)
552555
try {

0 commit comments

Comments
 (0)