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: Disabled BUY button on bsx #6412

Merged
merged 3 commits into from
Jul 10, 2023
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,19 @@ const label = computed(() =>
)

const balance = computed<string>(() => {
if (['rmrk', 'ksm', 'stmn'].includes(urlPrefix.value)) {
return identityStore.getAuthBalance
switch (urlPrefix.value) {
case 'rmrk':
case 'ksm':
case 'stmn':
return identityStore.getAuthBalance
case 'bsx':
return identityStore.multiBalances.chains.basilisk?.ksm?.nativeBalance
case 'snek':
return identityStore.multiBalances.chains['basilisk-testnet']?.ksm
vikiival marked this conversation as resolved.
Show resolved Hide resolved
?.nativeBalance
default:
return identityStore.getTokenBalanceOf(getKusamaAssetId(urlPrefix.value))
}
return identityStore.getTokenBalanceOf(getKusamaAssetId(urlPrefix.value))
})
const disabled = computed(() => {
if (!(props.nftPrice && balance.value) || !connected.value) {
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/src/components/NeoTooltip/NeoTooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:style="{
'--font-size': fontSize,
'--multiline-width': multilineWidth,
width: fullWidth ? '100%' : 'auto',
width: fullWidth ? '100%' : '',
}"
:position="position"
:label="label"
Expand Down