|
@@ -10,7 +10,7 @@ function ProductionSoft({products}: {products: ProductCategory[]}) {
|
|
|
const REMOTE_BASE_URL = process.env.NEXT_PUBLIC_REMOTE_BASE_URL || 'http://47.107.107.47:8040'
|
|
const REMOTE_BASE_URL = process.env.NEXT_PUBLIC_REMOTE_BASE_URL || 'http://47.107.107.47:8040'
|
|
|
const [isMobile, setIsMobile] = useState(false);
|
|
const [isMobile, setIsMobile] = useState(false);
|
|
|
|
|
|
|
|
- const getProductImageUrl = (url?: string) => {
|
|
|
|
|
|
|
+ const getProductImageUrl = (url?: string | null) => {
|
|
|
let coverImageUrl = url || '';
|
|
let coverImageUrl = url || '';
|
|
|
if (coverImageUrl) {
|
|
if (coverImageUrl) {
|
|
|
if (coverImageUrl.startsWith('http')) {
|
|
if (coverImageUrl.startsWith('http')) {
|