()
| 229 | } |
| 230 | |
| 231 | const prepare = async () => { |
| 232 | const newPrizeIndex = await API.getPrizeIndex(); |
| 233 | setPrizeIndex(newPrizeIndex); |
| 234 | setStart(false); |
| 235 | |
| 236 | const { id } = prizeList[newPrizeIndex]; |
| 237 | |
| 238 | Toast.fire({ icon: 'info', title: `Must win id - ${id}` }); |
| 239 | }; |
| 240 | |
| 241 | prepare(); |
| 242 | }, [spinning, prizeList]); |