Skip to content

Commit

Permalink
fix audio & video Mint
Browse files Browse the repository at this point in the history
  • Loading branch information
dlaxcess committed Apr 16, 2024
1 parent 1105889 commit fe8729a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion svelte/src/components/Input/InputAudioMint.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Upload audi file for Mint audio
////////////////////////////////////////////////////////////////
export let audioFile: File | undefined = undefined;
export let audio: string;
export let audio: string | undefined;
////////////////////////////////////////////////////////////////
let files: FileList | undefined = undefined;
Expand Down
2 changes: 1 addition & 1 deletion svelte/src/components/Input/InputVideoMint.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// Upload video file for Mint video
////////////////////////////////////////////////////////////////
export let videoFile: File | undefined = undefined;
export let video: string;
export let video: string | undefined;
////////////////////////////////////////////////////////////////
let files: FileList | undefined = undefined;
Expand Down
4 changes: 2 additions & 2 deletions svelte/src/components/Nft/NftMintPopup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,11 @@
</div>
</div>

{#if inputMediaType === "audio" && audioFile && audio}
{#if inputMediaType === "audio"}
<InputAudioMint bind:audioFile bind:audio />
{/if}

{#if inputMediaType === "video" && file && src}
{#if inputMediaType === "video"}
<InputVideoMint bind:videoFile={file} bind:video={src} />
{/if}

Expand Down

0 comments on commit fe8729a

Please sign in to comment.