Skip to content

Commit

Permalink
Merge pull request #134 from multiversx/update-vite-cert
Browse files Browse the repository at this point in the history
Update Vite Config
  • Loading branch information
radumojic authored Oct 24, 2024
2 parents 558586a + 3b38066 commit f2d5331
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/config/helpers/getInternalLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { NetworkType, NetworkUrlType } from 'types/network.types';

export const getInternalLinks = (networks: NetworkType[]): NetworkUrlType[] => {
const isInternal =
import.meta.env.NODE_ENV === 'production' &&
import.meta.env.PROD &&
import.meta.env.VITE_APP_SHARE_PREFIX === 'internal-';

if (isInternal) {
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/downloadFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const getFileMetadata = (type: DownloadFileType['fileType']) => {
};

export const downloadFile = ({ data, name, fileType }: DownloadFileType) => {
if (data && name && import.meta.env.NODE_ENV !== 'test') {
if (data && name) {
const type = getFileMetadata(fileType);
const blob = new Blob([data], { type });

Expand Down
20 changes: 9 additions & 11 deletions src/widgets/ValidatorsStatusCard/components/LargeCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,15 @@ export const LargeCard = ({
</div>
<div className='row flex-wrap-reverse'>
<ShardList className='col-md-5' />
{import.meta.env.NODE_ENV !== 'test' &&
markers.length > 0 &&
isMainnet && (
<>
<ValidatorMap
markers={markers}
className='col-md-7 position-relative'
/>
<ContinentsRank continentsRank={continentsRank} />
</>
)}
{markers.length > 0 && isMainnet && (
<>
<ValidatorMap
markers={markers}
className='col-md-7 position-relative'
/>
<ContinentsRank continentsRank={continentsRank} />
</>
)}
<div
className={
isMainnet
Expand Down
4 changes: 1 addition & 3 deletions src/widgets/ValidatorsStatusCard/components/SmallCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ export const SmallCard = ({
{totalValidators ?? ELLIPSIS}
</h2>
</div>
{import.meta.env.NODE_ENV !== 'test' && markers.length > 0 && (
<ValidatorMap markers={markers} />
)}
{markers.length > 0 && <ValidatorMap markers={markers} />}
</div>
{continentsRank && continentsRank.length > 0 && (
<ContinentsRank continentsRank={continentsRank} />
Expand Down

0 comments on commit f2d5331

Please sign in to comment.