Skip to content

Commit

Permalink
Fix pending redeem order (#1746)
Browse files Browse the repository at this point in the history
  • Loading branch information
onnovisser authored Dec 8, 2023
1 parent 1660507 commit 9309eb1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ function RedeemForm({ autoFocus }: RedeemFormProps) {
<PendingOrder
type="redeem"
pool={pool}
amount={pendingRedeem.mul(state.tokenPrice)}
amount={pendingRedeem}
onCancelOrder={() => actions.cancelRedeem()}
isCancelling={isCancelling}
onChangeOrder={() => {
Expand Down
3 changes: 2 additions & 1 deletion fabric/src/components/CurrencyInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ export function CurrencyInput({
onBlur={(e) => {
// only enforce the number of decimals on blur, so as not to cause jank during typing
formatDecimals(e.target.value)
onBlur?.(e)
// In promise otherwise validation may run too soon
Promise.resolve().then(() => onBlur?.(e))
}}
value={internalValue}
symbol={currency}
Expand Down
1 change: 1 addition & 0 deletions fabric/src/components/StatusChip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const colors = {

const Chip = styled(Text)((props) =>
css({
display: 'inline-block',
px: 1,
bg: `${props.color}Bg`,
borderRadius: 'chip',
Expand Down

0 comments on commit 9309eb1

Please sign in to comment.