Skip to content

Commit

Permalink
HF 30 - NFT fix - offer already exists message
Browse files Browse the repository at this point in the history
  • Loading branch information
1aerostorm committed Jun 3, 2024
1 parent f6e44a1 commit cf3d729
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,8 @@
"auction_expiration_dev": "secs",
"auction_expiration3": "NFT is selling via auction: Auction ending",
"auction_hint": "User proposals will be canceled.",
"bet_already_exists": "Bet with such price already exists."
"bet_already_exists": "Bet with such price already exists.",
"offer_already_exists": "Offer with such price already exists."
},
"all_nft_page_jsx": {
"title": "All NFT on the Golos",
Expand Down
3 changes: 2 additions & 1 deletion app/locales/ru-RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,8 @@
"auction_expiration_dev": "секунд",
"auction_expiration3": "NFT продается на аукционе. Окончание аукциона",
"auction_hint": "Предложения о покупке, сделанные пользователями самостоятельно, будут отменены.",
"bet_already_exists": "Уже есть ставка с такой ценой."
"bet_already_exists": "Уже есть ставка с такой ценой.",
"offer_already_exists": "Уже есть предложение с такой ценой."
},
"all_nft_page_jsx": {
"title": "Все NFT на Golos",
Expand Down
4 changes: 3 additions & 1 deletion app/redux/Transaction_Error.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,12 @@ export default function transactionErrorReducer(
}
break;
case 'nft_buy':
console.log(errorStr)
if (errorStr.includes('Bet with such price already exists.')) {
errorKey = errorStr = tt('nft_tokens_jsx.bet_already_exists')
handled = true
} else if (errorStr.includes('Order with such price already exists.')) {
errorKey = errorStr = tt('nft_tokens_jsx.offer_already_exists')
handled = true
}
break
case 'withdraw_vesting':
Expand Down

0 comments on commit cf3d729

Please sign in to comment.