final checks #14
@@ -16,7 +16,9 @@ export default function Nominations() {
|
||||
const [isLoading, setIsLoading] = useState(false);
|
||||
const [message, setMessage] = useState("");
|
||||
const isSpotifyURL =
|
||||
/^https:\/\/open\.spotify\.com\/track\/[a-zA-Z0-9]{22}/.test(songURL);
|
||||
/^https:\/\/open\.spotify\.com\/track\/[a-zA-Z0-9]{22}(\?.*)?$/.test(
|
||||
songURL,
|
||||
);
|
||||
const { quota, setQuota } = useQuota();
|
||||
async function nominate(spotifyLink: string) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user