Skip to content

Commit

Permalink
fix: order tx hash
Browse files Browse the repository at this point in the history
  • Loading branch information
katamarinaki committed May 28, 2024
1 parent b97db38 commit 5526d56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/stonks/ui/StonksOrderCard/StonksOrderCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function StonksOrderCard({
</div>
</Row>

{order.transactions ? (
{order.transactions?.length ? (
<>
{order.transactions.length > 1 ? (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ export function StonksOrderResolverForm() {

const handleSubmit = async (values: FormData) => {
try {
const isAddress = utils.isAddress(values.txHashOrAddress)
if (isAddress) {
if (utils.isAddress(values.txHashOrAddress)) {
const orderContract = connectContractRpc(
StonksOrderAbi__factory,
values.txHashOrAddress,
Expand Down

0 comments on commit 5526d56

Please sign in to comment.