Skip to content

Commit

Permalink
chore: add comment to ensure both provider versions are included
Browse files Browse the repository at this point in the history
  • Loading branch information
RyukTheCoder committed Dec 31, 2024
1 parent 6146705 commit dc81a04
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions widget/embedded/src/utils/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ export function matchAndGenerateProviders(
return versionedProvider.config.type === requestedProvider;
});

/*
* A provider may have multiple versions
* (e.g., 0.0, also known as legacy, and 1.0, also known as hub).
* We should ensure that all existing versions of a provider are added to selectedProviders.
*/
if (result) {
selectedProviders.push(result);
}
Expand Down

0 comments on commit dc81a04

Please sign in to comment.