Skip to content

Commit

Permalink
型修正
Browse files Browse the repository at this point in the history
  • Loading branch information
hikahana committed Sep 9, 2024
1 parent 622168d commit 19ebf30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion view-user/src/pages/prizes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ const Page: NextPage = () => {
setBingoPrize((prizes) =>
prizes.map((prize) => {
const updatePrize = subscription.prizes.find(
(subscriptionPrize) => subscriptionPrize.id === prize.id,
(subscriptionPrize: SubscribeListPrizesIsWonSubscription["prizes"][0]) =>
subscriptionPrize.id === prize.id,
);
return updatePrize ? { ...prize, isWon: updatePrize.isWon } : prize;
}),
Expand Down

0 comments on commit 19ebf30

Please sign in to comment.