Skip to content

Commit

Permalink
fix_: crash on viewing dynamic file type collectibles
Browse files Browse the repository at this point in the history
Signed-off-by: Mohamed Javid <[email protected]>
  • Loading branch information
smohamedjavid committed Sep 12, 2024
1 parent 009ac7e commit f884430
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/status_im/contexts/wallet/collectible/utils.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

(def supported-collectible-types
#{"image/jpeg"
"image/gif"
"image/bmp"
"image/png"
"image/webp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
[quo/collectible-list-item
{:type :card
:image-src (:uri preview-url)
:avatar-image-src (:image-url collection-data)
:avatar-image-src (when (utils/supported-file? (:image-url collection-data))
(:image-url collection-data))
:collectible-name (:name collectible-data)
:supported-file? (utils/supported-file? (:animation-media-type collectible-data))
:gradient-color-index gradient-color
Expand Down

0 comments on commit f884430

Please sign in to comment.