Skip to content

Commit

Permalink
dope
Browse files Browse the repository at this point in the history
  • Loading branch information
Zizzamia committed Feb 7, 2024
1 parent f67a33a commit 1dc5fa5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/FrameMetadata.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function FrameMetadata({
{!!button.action && (
<meta name={`fc:frame:button:${index + 1}:action`} content={button.action} />
)}
{!!button.target && (
{(button.action == 'link' || button.action == 'mint') && !!button.target && (
<meta name={`fc:frame:button:${index + 1}:target`} content={button.target} />
)}
</>
Expand Down
2 changes: 1 addition & 1 deletion src/core/getFrameHtmlResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function getFrameHtmlResponse({
if (button.action) {
buttonHtml += `<meta property="fc:frame:button:${index + 1}:action" content="${button.action}" />`;
}
if (button.target) {
if ((button.action == 'link' || button.action == 'mint') && button.target) {
buttonHtml += `<meta property="fc:frame:button:${index + 1}:target" content="${button.target}" />`;
}
return buttonHtml;
Expand Down
2 changes: 1 addition & 1 deletion src/core/getFrameMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const getFrameMetadata = function ({
if (button.action) {
metadata[`fc:frame:button:${index + 1}:action`] = button.action;
}
if (button.target) {
if ((button.action == 'link' || button.action == 'mint') && button.target) {
metadata[`fc:frame:button:${index + 1}:target`] = button.target;
}
});
Expand Down

0 comments on commit 1dc5fa5

Please sign in to comment.