|
@@ -7,11 +7,12 @@ const ActivityMask = () => {
|
|
|
const [visible, setVisible] = useState<boolean>(false);
|
|
|
|
|
|
const wallet = useWalletStore((state) => state.wallet);
|
|
|
+ console.log(`🚀🚀🚀🚀🚀-> in ActivityMask.tsx on 10`, wallet);
|
|
|
useEffect(() => {
|
|
|
- if (wallet.gift_packet.amount > 0) {
|
|
|
+ if (wallet?.notice?.lose_score > 0) {
|
|
|
setVisible(true);
|
|
|
}
|
|
|
- }, [wallet.gift_packet.amount]);
|
|
|
+ }, [wallet?.notice?.lose_score]);
|
|
|
|
|
|
return (
|
|
|
<Mask visible={visible} destroyOnClose={true} getContainer={null}>
|