fix: fallback to first endpoint
This commit is contained in:
@ -12,7 +12,8 @@ export default function DashboardIntroFinal() {
|
||||
const [info, setInfo] = useState<StreamProviderInfo>();
|
||||
|
||||
const defaultEndpoint = useMemo(() => {
|
||||
return info?.endpoints.find(a => a.name == "Best");
|
||||
return info?.endpoints.find(a => a.name == "Best")
|
||||
?? info?.endpoints[0];
|
||||
}, [info]);
|
||||
|
||||
async function loadInfo() {
|
||||
|
Reference in New Issue
Block a user