Skip to content

Commit 972094e

Browse files
committed
FrontEnd Update
1 parent 95a3e58 commit 972094e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ case $choice in
3737
cd web_app/Source_webapp || { echo "Error: Failed to navigate to web_app directory."; exit 1; }
3838

3939
echo "Installing new packages for web_app via npm..."
40-
if npm install; then
40+
if npm install --legacy-peer-deps; then
4141
echo "Packages for web_app installed successfully."
4242
else
4343
echo "Error: Failed to install web_app packages."

web_app/Source_webapp/src/utils/ipfsUtils.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ interface NFTMetadata {
1010
}
1111

1212
export const uploadNFTToIPFS = async (
13-
metadata: NFTMetadata
13+
metadata: NFTMetadata,
14+
nftStorageApiKey: string
1415
): Promise<string> => {
1516
const client = new NFTStorage({
16-
token: '',
17+
token: nftStorageApiKey,
1718
})
1819

1920
try {

web_app/Source_webapp/src/views/account/Settings/components/SelectDeviceForNFT.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default function SelectDeviceForNFT() {
6464
value: device.hardwareVersion,
6565
},
6666
],
67-
})
67+
}, process.env.VITE_NFT_STORAGE_API_KEY || '')
6868

6969
// Step 3: Create NFT with metadata URL
7070
const result = await CreateDeviceNFT(

0 commit comments

Comments
 (0)