Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

support bypass_track_ownership_validation field #2426

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/app/components/drop/drop-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export const DropSelect = () => {
redirectIfProfileIncomplete: true,
});
const canCreateMusicDrop =
!!user.user?.data.profile.spotify_artist_id ||
!!user.user?.data.profile.bypass_track_ownership_validation;
!!user.user?.data.profile.spotify_artist_id ||
!!user.user?.data.profile.apple_music_artist_id;
const isDark = useIsDarkMode();

Expand Down
1 change: 1 addition & 0 deletions packages/app/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ export interface Profile {
has_spotify_token: boolean;
spotify_artist_id?: string;
apple_music_artist_id?: string;
bypass_track_ownership_validation?: boolean;
captcha_completed_at: Date | null;
has_social_login: boolean;
social_login_connections: SocialLoginConnections;
Expand Down
Loading