File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 11
11
grid-size =" medium"
12
12
:grid-section =" gridSection"
13
13
link-target =" _blank"
14
- :hide-hover-action =" !selectable"
14
+ :hide-hover-action =" !selectable || stepItems.length === MAX_AMOUNT_OF_SWAP_ITEMS "
15
15
>
16
16
<template
17
17
v-if =" surcharge "
@@ -31,6 +31,8 @@ import { type SwapSurcharge } from '@/composables/transaction/types'
31
31
32
32
const gridSection = GridSection .PROFILE_GALLERY
33
33
34
+ const MAX_AMOUNT_OF_SWAP_ITEMS = 1
35
+
34
36
const props = defineProps <{
35
37
query: Record <string , any >
36
38
selectable? : boolean
@@ -40,6 +42,7 @@ const props = defineProps<{
40
42
41
43
const route = useRoute ()
42
44
const { replaceUrl } = useReplaceUrl ()
45
+ const { stepItems } = storeToRefs (useAtomicSwapStore ())
43
46
44
47
const collections = ref (route .query .collections ?.toString ().split (' ,' ).filter (Boolean ) || [])
45
48
You can’t perform that action at this time.
0 commit comments