mirror of
https://github.com/revanced/revanced-website.git
synced 2025-05-02 07:34:34 +02:00
fix: social button URL casing issue
This commit is contained in:
parent
e0db94b2c3
commit
d0b3c5ca6b
@ -4,7 +4,11 @@
|
||||
export let data: Social[];
|
||||
</script>
|
||||
|
||||
<a href={data.find(jsonSocial => jsonSocial.name === social)?.url} rel="noreferrer" target="_blank">
|
||||
<a
|
||||
href={data.find((jsonSocial) => jsonSocial.name.toLowerCase() === social.toLowerCase())?.url}
|
||||
rel="noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
<div>
|
||||
<img src="socials/{social}.svg" alt={social} />
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user