url port removal
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import {BASE_URL} from '../../../common/config'
|
||||
|
||||
export const formatPrice = p => {
|
||||
if (isNaN(p)) {
|
||||
return 'Po dogovoru'
|
||||
@@ -33,8 +35,7 @@ S poštovanjem
|
||||
}
|
||||
|
||||
export const listingUrl = (id) => {
|
||||
// TODO: fix this once removing hardcoded values
|
||||
return `http://138.68.67.31:8080/?listingId=${id}`
|
||||
return `http://${BASE_URL}/?listingId=${id}`
|
||||
}
|
||||
|
||||
export const isMobile = () => window.matchMedia("(max-width: 768px)").matches
|
||||
|
||||
Reference in New Issue
Block a user