|
@@ -24,7 +24,7 @@ interface Props {
|
|
|
|
|
|
const ServiceWidget: FC<Props> = (props) => {
|
|
const ServiceWidget: FC<Props> = (props) => {
|
|
const token = getToken();
|
|
const token = getToken();
|
|
- const { services, socials } = props;
|
|
|
|
|
|
+ const { services, socials = [] } = props;
|
|
|
|
|
|
const { wheelStatus, wheelCurrent, setWheel } = useWheelStore((state) => ({
|
|
const { wheelStatus, wheelCurrent, setWheel } = useWheelStore((state) => ({
|
|
wheelStatus: state.status,
|
|
wheelStatus: state.status,
|
|
@@ -33,7 +33,7 @@ const ServiceWidget: FC<Props> = (props) => {
|
|
}));
|
|
}));
|
|
const defaultService = services?.find((item) => item.is_suspend === 1);
|
|
const defaultService = services?.find((item) => item.is_suspend === 1);
|
|
|
|
|
|
- const newServices = services?.filter((item) => item.is_suspend !== 1);
|
|
|
|
|
|
+ const newServices = services?.filter((item) => item.is_suspend !== 1) || [];
|
|
const setSocials = useSocialStore((state) => state.setSocials);
|
|
const setSocials = useSocialStore((state) => state.setSocials);
|
|
const redPacketModalRef = useRef<RedPacketModalProps>(null);
|
|
const redPacketModalRef = useRef<RedPacketModalProps>(null);
|
|
|
|
|