File tree Expand file tree Collapse file tree
lucky7-app/frontend/src/app/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -324,12 +324,6 @@ function JackpotBadge() {
324324 } , [ ] ) ;
325325
326326 const allLocked = locked . every ( Boolean ) ;
327- const [ rainKey , setRainKey ] = useState ( 0 ) ;
328- const prevAllLocked = useRef ( false ) ;
329- useEffect ( ( ) => {
330- if ( allLocked && ! prevAllLocked . current ) setRainKey ( k => k + 1 ) ;
331- prevAllLocked . current = allLocked ;
332- } , [ allLocked ] ) ;
333327
334328 return (
335329 < span className = "relative inline-flex items-center gap-px bg-green-500/15 border border-green-500/40 rounded px-1 py-px font-black tabular-nums leading-none text-[11px]" >
@@ -344,7 +338,7 @@ function JackpotBadge() {
344338 { allLocked &&
345339 [ 0 , 1 , 2 ] . map ( i => (
346340 < span
347- key = { ` ${ rainKey } - ${ i } ` }
341+ key = { i }
348342 className = "anim-coin-rain"
349343 style = { { right : `${ i * 10 } px` , animationDelay : `${ i * 0.12 } s` , zIndex : 50 } }
350344 >
You can’t perform that action at this time.
0 commit comments