Skip to content

Commit

Permalink
Merge pull request #1496 from ecency/feat/send-hbd-to-exchange
Browse files Browse the repository at this point in the history
allow hbd to exchange account with memo
  • Loading branch information
feruzm authored Oct 28, 2023
2 parents 9e5208c + 50c8b30 commit 8a3f760
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/common/components/transfer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,7 @@ export class Transfer extends BaseComponent<Props, State> {
const { asset } = this.state;

if (exchangeAccounts.includes(to)) {
if (asset !== "HIVE") {
this.stateSet({ exchangeWarning: _t("transfer.invalid-asset") });
} else if (asset === "HIVE" && !memo) {
if ((asset === "HIVE" || asset === "HBD") && !memo) {
this.stateSet({ exchangeWarning: _t("transfer.memo-required") });
} else {
this.stateSet({ exchangeWarning: "" });
Expand Down

0 comments on commit 8a3f760

Please sign in to comment.