The weeb for the next gen discord boat - Wamellow wamellow.com
bot discord
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

disable spotify login on connection page

Luna 06b35acb e6597d75

+3
+3
app/profile/connections/page.tsx
··· 65 65 { name: string; type: ConnectionType; data: ApiV1UsersMeConnectionsGetResponse[]; } 66 66 ) { 67 67 const connection = data.find((entry) => entry.type === type); 68 + const disabled = type === ConnectionType.Spotify && !connection; 68 69 69 70 return ( 70 71 <div ··· 99 100 <Button 100 101 className="ml-auto" 101 102 onClick={() => { 103 + if (disabled) return; 102 104 // idk with router.push logout doesn't update 103 105 window.location.href = `/login/${name.toLowerCase()}${connection ? "?logout=true" : ""}`; 104 106 }} 107 + disabled={disabled} 105 108 > 106 109 {connection ? <HiTrash /> : <HiFingerPrint />} 107 110 {connection ? "Disconnect" : "Connect"}