diff --git a/src/app/components/vault/vault.tsx b/src/app/components/vault/vault.tsx index 9a5ee4c5..d81a72b9 100644 --- a/src/app/components/vault/vault.tsx +++ b/src/app/components/vault/vault.tsx @@ -22,9 +22,8 @@ export function Vault({ vault, variant }: VaultProps): React.JSX.Element { function handleMainButtonClick() { if (variant === 'select') { - vault.valueLocked === vault.valueMinted - ? dispatch(mintUnmintActions.setUnmintStep([0, vault.uuid])) - : dispatch(mintUnmintActions.setUnmintStep([1, vault.uuid])); + const step = vault.valueLocked === vault.valueMinted ? 0 : 1; + dispatch(mintUnmintActions.setUnmintStep([step, vault.uuid])); } else { setIsVaultExpanded(!isVaultExpanded); }