Skip to content

Commit

Permalink
fix: variant value
Browse files Browse the repository at this point in the history
  • Loading branch information
rossbulat committed Jun 17, 2024
1 parent 7bb2d7c commit 832dc26
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/routes/Chain/Inputs/useInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,9 @@ export const useInput = () => {
};

// Gets a selected variant item, or falls back to the first variant.
const getSelectedVariant = (
arg: AnyJson,
{ namespace, inputKey }: InputArg
) => {
const getSelectedVariant = (arg: AnyJson, { namespace }: InputArg) => {
const { inputKey } = arg.class;

// Get the current variant value, if any.
const currentInputArg = getInputArgsAtKey(tabId, namespace, inputKey);

Expand Down

0 comments on commit 832dc26

Please sign in to comment.