From fd7e4b0d3cad129469f60806c5fc712e08843e76 Mon Sep 17 00:00:00 2001 From: Hubert Walczak Date: Tue, 6 Jun 2023 12:15:58 +0200 Subject: [PATCH] fixed animated asset url --- src/api/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/api.ts b/src/api/api.ts index a6cac9c..3f71500 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -22,7 +22,7 @@ export const getAssetURL = ( ) => { if (!asset) return ""; if (assetType === "heroes_animated") { - return `${apiUrl}static/dota2/heroes/animated/${asset}.webm`; + return `${apiUrl}static/dota2/heroes/animated/${asset.startsWith("npc_dota_hero_")? asset : `npc_dota_hero_${asset}`}.webm`; } if (assetType === "heroes_icons") { return `${apiUrl}static/dota2/heroes/icons/${asset}.png`;