Skip to content

Commit

Permalink
fix: Manage pools formatting error (#2363)
Browse files Browse the repository at this point in the history
Co-authored-by: Enric Arasa <enric@globals.cat>
  • Loading branch information
henry-arcu89 and Enric Arasa authored Dec 7, 2024
1 parent 5d2d045 commit eedef20
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const PoolCommissionProvider = ({

// Get initial maximum commission value from the bonded pool commission config.
const initialMaxCommission = Number(
(bondedPool?.commission?.max || '100%').slice(0, -1)
(bondedPool?.commission?.max || '100').toString().slice(0, -1)
)

// Get initial change rate value from the bonded pool commission config.
Expand Down

0 comments on commit eedef20

Please sign in to comment.