Skip to content

Commit

Permalink
Merge pull request #961 from input-output-hk/fix/use-correct-extensio…
Browse files Browse the repository at this point in the history
…n-id

fix: use correct extension ID
  • Loading branch information
mchappell authored Oct 23, 2024
2 parents a2aa980 + 9348f24 commit fc1bfa9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import secrets from '../../../../config/provider';

if (secrets.LACE_EXTENSION_ID === undefined) {
throw new Error('process.env.LACE_EXTENSION_ID must be defined');
throw new Error('LACE_EXTENSION_ID must be defined');
}
export const LACE_EXTENSION_ID = secrets.LACE_EXTENSION_ID;
5 changes: 3 additions & 2 deletions src/ui/lace-migration/components/migration.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { STORAGE } from '../../../config/config';
import { setStorage, getAccounts } from '../../../api/extension';
import { useFeatureFlagsContext } from '../../../features/feature-flags/provider';
import { App } from '../../app';
import secrets from '../../../config/provider';

const isDismissedTimeInPast = (dismissedUntil) =>
!!dismissedUntil && dismissedUntil > Date.now();
Expand Down Expand Up @@ -149,7 +150,7 @@ export const AppWithMigration = () => {
onDownloadLaceClicked={() => {
captureEvent(Events.MigrationDownloadLaceClicked);
window.open(
`https://chromewebstore.google.com/detail/lace/${process.env.LACE_EXTENSION_ID}`
`https://chromewebstore.google.com/detail/lace/${secrets.LACE_EXTENSION_ID}`
);
}}
onOpenLaceClicked={() => {
Expand All @@ -166,7 +167,7 @@ export const AppWithMigration = () => {
} else {
captureEvent(Events.MigrationDownloadLaceClicked, { noWallet: true });
window.open(
`https://chromewebstore.google.com/detail/lace/${process.env.LACE_EXTENSION_ID}`
`https://chromewebstore.google.com/detail/lace/${secrets.LACE_EXTENSION_ID}`
);
}
}}
Expand Down

0 comments on commit fc1bfa9

Please sign in to comment.