Skip to content

Commit 0f1a116

Browse files
committed
fix: linting error on fish-sheet
1 parent 0664d58 commit 0f1a116

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/components/sheets/fish-sheet.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,12 @@ export const FishSheet = ({ open, setIsOpen, fish }: Props) => {
121121
</>
122122
) : (
123123
<>
124-
{fishCaught.has(fish?.itemID ?? 0) ? (
124+
{fishCaught.has(fish?.itemID?.toString() ?? "0") ? (
125125
<Button
126126
variant="secondary"
127127
disabled={
128-
!activePlayer || !fishCaught.has(fish?.itemID ?? 0)
128+
!activePlayer ||
129+
!fishCaught.has(fish?.itemID?.toString() ?? "0")
129130
}
130131
data-umami-event="Set incompleted"
131132
onClick={() => {
@@ -138,7 +139,8 @@ export const FishSheet = ({ open, setIsOpen, fish }: Props) => {
138139
<Button
139140
variant="secondary"
140141
disabled={
141-
!activePlayer || fishCaught.has(fish?.itemID ?? 0)
142+
!activePlayer ||
143+
fishCaught.has(fish?.itemID?.toString() ?? "0")
142144
}
143145
data-umami-event="Set completed"
144146
onClick={() => {

0 commit comments

Comments
 (0)