web/satellite: fix duplicate satellite selection on login and forgot password pages

Remove duplicate satellite in selection dropdown on login and forgot password pages.

Issue:
https://github.com/storj/storj/issues/6121

Change-Id: I81bd0c2c29c695ed9ed7f0d648311448cdc9bf26
This commit is contained in:
Vitalii 2023-08-29 13:11:55 +03:00 committed by Storj Robot
parent a5b1c0432f
commit 614d213432
2 changed files with 4 additions and 2 deletions

View File

@ -132,7 +132,8 @@ const satelliteName = computed((): string => {
* Information about partnered satellites, including name and signup link. * Information about partnered satellites, including name and signup link.
*/ */
const partneredSatellites = computed((): PartneredSatellite[] => { const partneredSatellites = computed((): PartneredSatellite[] => {
return configStore.state.config.partneredSatellites; const satellites = configStore.state.config.partneredSatellites;
return satellites.filter(s => s.name !== satelliteName.value);
}); });
/** /**

View File

@ -241,7 +241,8 @@ const satelliteName = computed((): string => {
* Information about partnered satellites, including name and signup link. * Information about partnered satellites, including name and signup link.
*/ */
const partneredSatellites = computed((): PartneredSatellite[] => { const partneredSatellites = computed((): PartneredSatellite[] => {
return configStore.state.config.partneredSatellites; const satellites = configStore.state.config.partneredSatellites;
return satellites.filter(s => s.name !== satelliteName.value);
}); });
/** /**