Skip to content

Commit

Permalink
fix remark
Browse files Browse the repository at this point in the history
  • Loading branch information
flipchan committed Jun 27, 2024
1 parent 46e89a8 commit 1013e65
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions src/components/Bagpipes/BagpipesFlow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -608,12 +608,17 @@ const BagpipesFlow = () => {

// Helper function outside of main function
const isActionDataComplete = (node) => {
console.log(`isActionDataComplete: `, node);
console.log(`isActionDataComplete node: `, node);

if (!node.formData || !node.formData.actionData) return false;

const { source, target } = node.formData.actionData;
console.log(`isActionDataComplete: `, node.formData.actionData);
console.log(`isActionDataComplete actionData: `, node.formData.actionData);
if (node.formData.actionData){
if (node.formData.actionData.actionType == "remark"){
return true;
}
}
if (!source || !target) return false;

const isSourceComplete = source.chain && source.assetId !== undefined && source.address && source.amount && source.amount.trim() !== "";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { dotToHydraDx, moon2polkadot, moon2parachain, moon2hydra2, hydra2moonbeam, interlay2moonbeam, polkadot2moonbeam, assethub2moonbeam, turing2moonriver, moonriver2turing, mangata2turing, polkadot_assethub_to_assetHub_kusama, hydraDxToParachain, turing2mangata, generic_kusama_to_parachain, assethub_to_hydra, hydradx_to_polkadot, hydradx_to_assethub, roc2assethub, polkadot_to_assethub, interlay2assethub, assethub2interlay, assethub_to_polkadot } from "../../../../Chains/DraftTx/DraftxTransferTx";
import { dotToHydraDx, generic_system_remark, moon2polkadot, moon2parachain, moon2hydra2, hydra2moonbeam, interlay2moonbeam, polkadot2moonbeam, assethub2moonbeam, turing2moonriver, moonriver2turing, mangata2turing, polkadot_assethub_to_assetHub_kusama, hydraDxToParachain, turing2mangata, generic_kusama_to_parachain, assethub_to_hydra, hydradx_to_polkadot, hydradx_to_assethub, roc2assethub, polkadot_to_assethub, interlay2assethub, assethub2interlay, assethub_to_polkadot } from "../../../../Chains/DraftTx/DraftxTransferTx";
import { getTokenDecimalsByAssetName, get_moonbeam_asset_decimals, getTokenDecimalsByChainName, get_hydradx_asset_symbol_decimals } from "../../../../Chains/Helpers/AssetHelper";
import toast from "react-hot-toast";
import { isEthereumAddress } from '@polkadot/util-crypto';
Expand Down

0 comments on commit 1013e65

Please sign in to comment.