Skip to content

Commit fc1bfa9

Browse files
authored
Merge pull request #961 from input-output-hk/fix/use-correct-extension-id
fix: use correct extension ID
2 parents a2aa980 + 9348f24 commit fc1bfa9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import secrets from '../../../../config/provider';
22

33
if (secrets.LACE_EXTENSION_ID === undefined) {
4-
throw new Error('process.env.LACE_EXTENSION_ID must be defined');
4+
throw new Error('LACE_EXTENSION_ID must be defined');
55
}
66
export const LACE_EXTENSION_ID = secrets.LACE_EXTENSION_ID;

src/ui/lace-migration/components/migration.component.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { STORAGE } from '../../../config/config';
1717
import { setStorage, getAccounts } from '../../../api/extension';
1818
import { useFeatureFlagsContext } from '../../../features/feature-flags/provider';
1919
import { App } from '../../app';
20+
import secrets from '../../../config/provider';
2021

2122
const isDismissedTimeInPast = (dismissedUntil) =>
2223
!!dismissedUntil && dismissedUntil > Date.now();
@@ -149,7 +150,7 @@ export const AppWithMigration = () => {
149150
onDownloadLaceClicked={() => {
150151
captureEvent(Events.MigrationDownloadLaceClicked);
151152
window.open(
152-
`https://chromewebstore.google.com/detail/lace/${process.env.LACE_EXTENSION_ID}`
153+
`https://chromewebstore.google.com/detail/lace/${secrets.LACE_EXTENSION_ID}`
153154
);
154155
}}
155156
onOpenLaceClicked={() => {
@@ -166,7 +167,7 @@ export const AppWithMigration = () => {
166167
} else {
167168
captureEvent(Events.MigrationDownloadLaceClicked, { noWallet: true });
168169
window.open(
169-
`https://chromewebstore.google.com/detail/lace/${process.env.LACE_EXTENSION_ID}`
170+
`https://chromewebstore.google.com/detail/lace/${secrets.LACE_EXTENSION_ID}`
170171
);
171172
}
172173
}}

0 commit comments

Comments
 (0)