Skip to content

Commit

Permalink
Merge pull request #2733 from IntersectMBO/develop
Browse files Browse the repository at this point in the history
fix: change env source to meta instead of process
  • Loading branch information
MSzalowski authored Jan 24, 2025
2 parents 5ad0229 + 2c6e2d0 commit 24c1f45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion govtool/frontend/src/utils/mapDtoToDrep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const mapDtoToDrep = async (dto: DrepDataDTO): Promise<DRepData> => {
if (dto.imageUrl) {
fetch(
isIPFSImage
? `${process.env.VITE_IPFS_GATEWAY}/${dto.imageUrl?.slice(7)}`
? `${import.meta.env.VITE_IPFS_GATEWAY}/${dto.imageUrl?.slice(7)}`
: dto.imageUrl,
isIPFSImage
? {
Expand Down
2 changes: 1 addition & 1 deletion govtool/frontend/src/utils/openInNewTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const openInNewTab = (url: string) => {
url.startsWith("http://") || url.startsWith("https://")
? url
: url.startsWith("ipfs")
? `${process.env.VITE_IPFS_GATEWAY}/${url.slice(7)}`
? `${import.meta.env.VITE_IPFS_GATEWAY}/${url.slice(7)}`
: `https://${url}`;

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

0 comments on commit 24c1f45

Please sign in to comment.