Skip to content

Commit

Permalink
fix: fees if domain is substrate (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
wainola authored Dec 5, 2023
1 parent fb4e784 commit 13772d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utils/Helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ export const formatDistanceDate = (timestamp: string): string => {

export const getFormatedFee = (fee: Transfer["fee"] | string, domain: SharedConfigDomain): string => {
let formatedFee = "No fee"
const { type } = domain

if (type === DomainTypes.SUBSTRATE) {
formatedFee = "50 PHA"
}

if (typeof fee !== "string" && domain) {
const { nativeTokenDecimals, nativeTokenSymbol } = domain
Expand Down

0 comments on commit 13772d9

Please sign in to comment.