Bluesky app fork with some witchin' additions 💫

Fix error getting through by primary feed sort (#3562)

authored by

Paul Frazee and committed by
GitHub
68d002a9 f265d65a

+3 -9
+3 -9
src/screens/Onboarding/util.ts
··· 107 107 } 108 108 109 109 /** 110 - * Kinda hacky, but we want For Your or Discover to appear as the first pinned 110 + * Kinda hacky, but we want Discover to appear as the first pinned 111 111 * feed after Following 112 112 */ 113 113 export function sortPrimaryAlgorithmFeeds(uris: string[]) { 114 114 return uris.sort((a, b) => { 115 - if (a === PRIMARY_FEEDS[0].uri) { 116 - return -1 117 - } 118 - if (b === PRIMARY_FEEDS[0].uri) { 119 - return 1 120 - } 121 - if (a === PRIMARY_FEEDS[1].uri) { 115 + if (a === PRIMARY_FEEDS[0]?.uri) { 122 116 return -1 123 117 } 124 - if (b === PRIMARY_FEEDS[1].uri) { 118 + if (b === PRIMARY_FEEDS[0]?.uri) { 125 119 return 1 126 120 } 127 121 return a.localeCompare(b)