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
231231 ) ;
232232 } ;
233233
234- if ( props . status === 'accepted' ) {
235- return (
236- < Text
237- colorScheme = 'secondary'
238- localizationKey = { localizationKeys ( 'taskChooseOrganization.chooseOrganization.suggestionsAcceptedLabel' ) }
239- />
240- ) ;
241- }
242-
243234 return (
244235 < OrganizationPreviewListItem
245236 organizationData = { props . publicOrganizationData }
246237 elementId = 'taskChooseOrganization'
247238 elementDescriptor = { descriptors . taskChooseOrganizationPreviewItem }
248239 >
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+ ) }
254252 </ OrganizationPreviewListItem >
255253 ) ;
256254} ) ;
You can’t perform that action at this time.
0 commit comments