Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobar79 committed Dec 31, 2024
1 parent a897029 commit 1f84939
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,10 @@ const UniqueTokenExpandedStateHeader = ({
} else if (actionKey === AssetActionsEnum.copyTokenID) {
setClipboard(asset.id);
} else if (actionKey === AssetActionsEnum.download) {
saveToCameraRoll(getFullResUrl(asset.image_url));
if (asset?.image_url) {
const fullResUrl = getFullResUrl(asset.image_url);
fullResUrl && saveToCameraRoll(fullResUrl);
}
} else if (actionKey === AssetActionsEnum.hide) {
if (isHiddenAsset) {
removeHiddenToken(asset);
Expand Down

0 comments on commit 1f84939

Please sign in to comment.