diff --git a/config/keplr.ts b/config/keplr.ts index 1637011..d8cee6c 100644 --- a/config/keplr.ts +++ b/config/keplr.ts @@ -52,11 +52,6 @@ export const keplrConfig = (config: AppConfig): ChainInfo => ({ coinMinimalDenom: config.feeToken, coinDecimals: config.coinMap[config.feeToken].fractionalDigits, }, - { - coinDenom: config.coinMap[config.stakingToken].denom, - coinMinimalDenom: config.stakingToken, - coinDecimals: config.coinMap[config.stakingToken].fractionalDigits, - }, ], feeCurrencies: [ { diff --git a/utils/getAssetType.ts b/utils/getAssetType.ts index e6b0312..6916cb8 100644 --- a/utils/getAssetType.ts +++ b/utils/getAssetType.ts @@ -4,7 +4,8 @@ export type AssetType = 'image' | 'audio' | 'video' | 'unknown' export const getAssetType = (assetFileName: string): AssetType => { const assetType = assetFileName?.split('.').pop() || 'unknown' - if (assetType === 'png' || assetType === 'jpg' || assetType === 'jpeg' || assetType === 'svg') return 'image' + if (assetType === 'png' || assetType === 'jpg' || assetType === 'jpeg' || assetType === 'svg' || assetType === 'gif') + return 'image' if (assetType === 'mp3' || assetType === 'wav') return 'audio' if (assetType === 'mp4') return 'video' return 'unknown'