Skip to content

Commit 24c1f45

Browse files
authored
Merge pull request #2733 from IntersectMBO/develop
fix: change env source to meta instead of process
2 parents 5ad0229 + 2c6e2d0 commit 24c1f45

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

govtool/frontend/src/utils/mapDtoToDrep.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const mapDtoToDrep = async (dto: DrepDataDTO): Promise<DRepData> => {
3434
if (dto.imageUrl) {
3535
fetch(
3636
isIPFSImage
37-
? `${process.env.VITE_IPFS_GATEWAY}/${dto.imageUrl?.slice(7)}`
37+
? `${import.meta.env.VITE_IPFS_GATEWAY}/${dto.imageUrl?.slice(7)}`
3838
: dto.imageUrl,
3939
isIPFSImage
4040
? {

govtool/frontend/src/utils/openInNewTab.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export const openInNewTab = (url: string) => {
44
url.startsWith("http://") || url.startsWith("https://")
55
? url
66
: url.startsWith("ipfs")
7-
? `${process.env.VITE_IPFS_GATEWAY}/${url.slice(7)}`
7+
? `${import.meta.env.VITE_IPFS_GATEWAY}/${url.slice(7)}`
88
: `https://${url}`;
99

1010
const newWindow = window.open(fullUrl, "_blank", "noopener,noreferrer");

0 commit comments

Comments
 (0)