File tree Expand file tree Collapse file tree 2 files changed +17
-14
lines changed
packages/clerk-js/src/ui/components/SessionTasks/tasks/TaskChooseOrganization Expand file tree Collapse file tree 2 files changed +17
-14
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @clerk/clerk-js ' : patch
3
+ ---
4
+
5
+ Fix ` TaskChooseOrganizationScreen ` to render accepted suggestions properly
Original file line number Diff line number Diff line change @@ -231,26 +231,24 @@ const SuggestionPreview = withCardStateProvider((props: OrganizationSuggestionRe
231
231
) ;
232
232
} ;
233
233
234
- if ( props . status === 'accepted' ) {
235
- return (
236
- < Text
237
- colorScheme = 'secondary'
238
- localizationKey = { localizationKeys ( 'taskChooseOrganization.chooseOrganization.suggestionsAcceptedLabel' ) }
239
- />
240
- ) ;
241
- }
242
-
243
234
return (
244
235
< OrganizationPreviewListItem
245
236
organizationData = { props . publicOrganizationData }
246
237
elementId = 'taskChooseOrganization'
247
238
elementDescriptor = { descriptors . taskChooseOrganizationPreviewItem }
248
239
>
249
- < OrganizationPreviewListItemButton
250
- onClick = { handleAccept }
251
- isLoading = { card . isLoading }
252
- localizationKey = { localizationKeys ( 'taskChooseOrganization.chooseOrganization.action__suggestionsAccept' ) }
253
- />
240
+ { props . status === 'accepted' ? (
241
+ < Text
242
+ colorScheme = 'secondary'
243
+ localizationKey = { localizationKeys ( 'taskChooseOrganization.chooseOrganization.suggestionsAcceptedLabel' ) }
244
+ />
245
+ ) : (
246
+ < OrganizationPreviewListItemButton
247
+ onClick = { handleAccept }
248
+ isLoading = { card . isLoading }
249
+ localizationKey = { localizationKeys ( 'taskChooseOrganization.chooseOrganization.action__suggestionsAccept' ) }
250
+ />
251
+ ) }
254
252
</ OrganizationPreviewListItem >
255
253
) ;
256
254
} ) ;
You can’t perform that action at this time.
0 commit comments