fix(wallet)_: crash on viewing dynamic file type collectibles (#21245)

This commit removes the support for GIF file types for the collectibles.

Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
This commit is contained in:
Mohamed Javid 2024-09-19 15:45:52 +05:30 committed by GitHub
parent 0eb065bbb7
commit 9912136ac9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,6 @@
(def supported-collectible-types (def supported-collectible-types
#{"image/jpeg" #{"image/jpeg"
"image/gif"
"image/bmp" "image/bmp"
"image/png" "image/png"
"image/webp" "image/webp"

View File

@ -40,7 +40,8 @@
[quo/collectible-list-item [quo/collectible-list-item
{:type :card {:type :card
:image-src (:uri preview-url) :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) :collectible-name (:name collectible-data)
:supported-file? (utils/supported-file? (:animation-media-type collectible-data)) :supported-file? (utils/supported-file? (:animation-media-type collectible-data))
:gradient-color-index gradient-color :gradient-color-index gradient-color