Skip to content

Commit e03beb4

Browse files
committed
fix: show Use button on provider photos even when primary exists
1 parent 6df2f17 commit e03beb4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

client/src/components/person/ProviderDataTable.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ export function ProviderDataTable({
465465
onSetPrimary={() => handleUsePhoto('familysearch')}
466466
loading={scrapeLoading || applyingField === 'photo-familysearch'}
467467
showUseButton={!hasFsPhoto}
468-
showSetPrimaryButton={hasFsPhoto && !hasPhoto}
468+
showSetPrimaryButton={hasFsPhoto}
469469
/>
470470
</td>
471471
<td className="px-2 py-1.5 text-xs">{renderProviderValue('familysearch', 'name')}</td>
@@ -536,7 +536,7 @@ export function ProviderDataTable({
536536
onSetPrimary={() => handleUsePhoto('ancestry')}
537537
loading={fetchingPhotoFrom === 'ancestry' || applyingField === 'photo-ancestry'}
538538
showUseButton={!!ancestryPlatform && !hasAncestryPhoto}
539-
showSetPrimaryButton={hasAncestryPhoto && !hasPhoto}
539+
showSetPrimaryButton={hasAncestryPhoto}
540540
/>
541541
</td>
542542
<td className="px-2 py-1.5 text-xs">{ancestryPlatform && renderProviderValue('ancestry', 'name')}</td>
@@ -629,7 +629,7 @@ export function ProviderDataTable({
629629
onSetPrimary={() => handleUsePhoto('wikitree')}
630630
loading={fetchingPhotoFrom === 'wikitree' || applyingField === 'photo-wikitree'}
631631
showUseButton={!!wikiTreePlatform && !hasWikiTreePhoto}
632-
showSetPrimaryButton={hasWikiTreePhoto && !hasPhoto}
632+
showSetPrimaryButton={hasWikiTreePhoto}
633633
/>
634634
</td>
635635
<td className="px-2 py-1.5 text-xs">{wikiTreePlatform && renderProviderValue('wikitree', 'name')}</td>

0 commit comments

Comments
 (0)