File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3,19 +3,19 @@ import { computed } from 'vue'
33
44export function useFormKitSection ( context : any ) {
55 const hasPrefix = computed ( ( ) => {
6- return context ?. prefix && context ?. prefix . length > 0
6+ return Boolean ( context ?. prefix ?. length > 0 )
77 } )
88
99 const hasPrefixIcon = computed ( ( ) => {
10- return context ?. iconPrefix && context ?. iconPrefix . length > 0
10+ return Boolean ( context ?. iconPrefix ?. length > 0 )
1111 } )
1212
1313 const hasSuffixIcon = computed ( ( ) => {
14- return context ?. iconSuffix && context ?. iconSuffix . length > 0
14+ return Boolean ( context ?. iconSuffix ?. length > 0 )
1515 } )
1616
1717 const hasSuffix = computed ( ( ) => {
18- return context ?. suffix && context ?. suffix . length > 0
18+ return Boolean ( context ?. suffix ?. length > 0 )
1919 } )
2020
2121 function generateId ( ) {
You can’t perform that action at this time.
0 commit comments