File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const OpenForGigs: FC<OpenForGigsProps> = (props: OpenForGigsProps) => {
4040
4141 const openForWork : UserTrait | undefined
4242 = useMemo ( ( ) => memberPersonalizationTraits ?. [ 0 ] ?. traits ?. data ?. find (
43- ( trait : UserTrait ) => trait . availableForGigs ,
43+ ( trait : UserTrait ) => trait . availableForGigs !== undefined ,
4444 ) , [ memberPersonalizationTraits ] )
4545
4646 function handleModifyOpenForWorkClick ( ) : void {
Original file line number Diff line number Diff line change @@ -42,7 +42,10 @@ const OpenForGigsModifyModal: FC<OpenForGigsModifyModalProps> = (props: OpenForG
4242 setIsSaving ( true )
4343
4444 const updatedPersonalizationTraits : UserTrait [ ]
45- = reject ( props . memberPersonalizationTraitsFullData , ( trait : UserTrait ) => ! ! trait . availableForGigs )
45+ = reject (
46+ props . memberPersonalizationTraitsFullData ,
47+ ( trait : UserTrait ) => trait . availableForGigs !== undefined ,
48+ )
4649
4750 methodsMap [ ! ! props . memberPersonalizationTraitsFullData ? 'update' : 'create' ] ( props . profile . handle , [ {
4851 categoryName : UserTraitCategoryNames . personalization ,
You can’t perform that action at this time.
0 commit comments