Skip to content

Commit

Permalink
Update UIA.jsx
Browse files Browse the repository at this point in the history
Further improvements to asset_to_update op contents
  • Loading branch information
grctest committed Sep 16, 2024
1 parent bdd9ae3 commit 9f6462d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/components/UIA.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,7 @@ export default function UIA(properties) {
_extensions.taker_fee_percent = takerFee ? takerFee * 100 : 0;
}

let _trxContents = {
issuer: usr.id,
symbol: symbol,
precision: precision,
is_prediction_market: false,
extensions: {}
};
let _trxContents = { issuer: usr.id, extensions: {}};

_trxContents[editing ? "new_options" : "common_options"] = {
// user configured
Expand Down Expand Up @@ -276,6 +270,10 @@ export default function UIA(properties) {

if (editing) {
_trxContents["asset_to_update"] = existingAssetID;
} else {
_trxContents["symbol"] = symbol;
_trxContents["precision"] = precision;
_trxContents["is_prediction_market"] = false;
}

return _trxContents;
Expand Down

0 comments on commit 9f6462d

Please sign in to comment.