Fix incorrect My Story name in SendStoryModal
This commit is contained in:
parent
ccb5eb0dd2
commit
4ebd9a02c2
1 changed files with 3 additions and 5 deletions
|
@ -163,13 +163,13 @@ export function SendStoryModal({
|
||||||
() =>
|
() =>
|
||||||
distributionLists
|
distributionLists
|
||||||
.filter(list => selectedListIds.has(list.id))
|
.filter(list => selectedListIds.has(list.id))
|
||||||
.map(list => list.name)
|
.map(list => getStoryDistributionListName(i18n, list.id, list.name))
|
||||||
.concat(
|
.concat(
|
||||||
groupStories
|
groupStories
|
||||||
.filter(group => selectedGroupIds.has(group.id))
|
.filter(group => selectedGroupIds.has(group.id))
|
||||||
.map(group => group.title)
|
.map(group => group.title)
|
||||||
),
|
),
|
||||||
[distributionLists, groupStories, selectedGroupIds, selectedListIds]
|
[distributionLists, groupStories, selectedGroupIds, selectedListIds, i18n]
|
||||||
);
|
);
|
||||||
|
|
||||||
const [searchTerm, setSearchTerm] = useState('');
|
const [searchTerm, setSearchTerm] = useState('');
|
||||||
|
@ -268,9 +268,7 @@ export function SendStoryModal({
|
||||||
if (page === Page.ChooseGroups) {
|
if (page === Page.ChooseGroups) {
|
||||||
selectedNames = chosenGroupNames.join(', ');
|
selectedNames = chosenGroupNames.join(', ');
|
||||||
} else {
|
} else {
|
||||||
selectedNames = selectedStoryNames
|
selectedNames = selectedStoryNames.join(', ');
|
||||||
.map(listName => getStoryDistributionListName(i18n, undefined, listName))
|
|
||||||
.join(', ');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const [objectUrl, setObjectUrl] = useState<string | undefined>(undefined);
|
const [objectUrl, setObjectUrl] = useState<string | undefined>(undefined);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue