Skip to content

Commit

Permalink
Merge pull request #102 from eco-stake/misc-bug-fixes
Browse files Browse the repository at this point in the history
Miscellaneous bug fixes
  • Loading branch information
tombeynon authored Jun 18, 2024
2 parents 736dd39 + c4e92ee commit 7fa3e91
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/ProposalMessages.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ function ProposalMessages(props) {
return {
...data,
amount: () => {
return data.amount.map(coin => {
return <Coins coins={coin} asset={network.assetForDenom(coin.denom)} fullPrecision={true} />
return data.amount.map((coin, index) => {
return <Coins key={index} coins={coin} asset={network.assetForDenom(coin.denom)} fullPrecision={true} />
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/converters/Authz.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function createAuthzAuthorizationAminoConverter(){

const dateConverter = {
toAmino(date){
return moment(date.seconds.toNumber() * 1000).utc().format()
return moment(Number(date.seconds) * 1000).utc().format()
},
fromAmino(date){
return {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/Helpers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,6 @@ export function authzSupportMessage(wallet){
if (wallet.signerProvider.isLedger()){
return `${wallet.signerProvider.label} can't send Authz transactions with Ledger on ${wallet.network.prettyName} just yet.`
}else{
return `${wallet.props.wallet.signerProvider.label} can't send Authz transactions on ${wallet.network.prettyName} just yet.`
return `${wallet.signerProvider.label} can't send Authz transactions on ${wallet.network.prettyName} just yet.`
}
}

0 comments on commit 7fa3e91

Please sign in to comment.