Fix more linter errors
This commit is contained in:
parent
b71bb09723
commit
4f11f88c0f
2 changed files with 3 additions and 3 deletions
|
|
@ -96,7 +96,7 @@ const GridRep = (props: Props) => {
|
|||
let url = ""
|
||||
|
||||
if (weapons[position] && grid[position]) {
|
||||
if (weapons[position].element == 0 && grid[position].element) {
|
||||
if (weapons[position]?.element == 0 && grid[position]?.element) {
|
||||
url = `${process.env.NEXT_PUBLIC_SIERO_IMG_URL}/weapon-grid/${weapons[position]?.granblue_id}_${grid[position].element}.jpg`
|
||||
} else {
|
||||
url = `${process.env.NEXT_PUBLIC_SIERO_IMG_URL}/weapon-grid/${weapons[position]?.granblue_id}.jpg`
|
||||
|
|
@ -104,7 +104,7 @@ const GridRep = (props: Props) => {
|
|||
}
|
||||
|
||||
return weapons[position] ? (
|
||||
<img alt={weapons[position].name[locale]} src={url} />
|
||||
<img alt={weapons[position]?.name[locale]} src={url} />
|
||||
) : (
|
||||
""
|
||||
)
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ function MyApp({ Component, pageProps }: AppProps) {
|
|||
} else {
|
||||
console.log(`You are not currently logged in.`)
|
||||
}
|
||||
}, [cookieData])
|
||||
}, [cookie, cookieData])
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
|
|
|
|||
Loading…
Reference in a new issue