Skip to content

Commit

Permalink
fix: one-way-swap
Browse files Browse the repository at this point in the history
  • Loading branch information
VanishMax committed Jun 25, 2024
1 parent 707dc9f commit cf0506e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ValueViewComponent } from '../../../value';
import { ArrowRight } from 'lucide-react';
import { ValueView } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb';
import { getAmount, getSymbolFromValueView } from '@penumbra-zone/getters/value-view';
import { getAmount } from '@penumbra-zone/getters/value-view';

/**
* Renders a one-way swap (which should be the only kind of swap that ever
Expand All @@ -18,7 +18,7 @@ export const OneWaySwap = ({ input, output }: { input: ValueView; output: ValueV

<ArrowRight />

{outputAmount ? <ValueViewComponent view={output} /> : getSymbolFromValueView(output)}
<ValueViewComponent view={output} showValue={!!outputAmount} />
</div>
);
};

0 comments on commit cf0506e

Please sign in to comment.