Skip to content

Commit

Permalink
Merge pull request #433 from commercelayer/show-return-stock-location
Browse files Browse the repository at this point in the history
Use `return stock_location` instead of `order.market`
  • Loading branch information
pfferrari authored Nov 15, 2023
2 parents 2d14bd1 + f80d893 commit af475a6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { type ResourceToProps } from '../types'
export const returnToProps: ResourceToProps<Return> = ({ resource, user }) => {
const displayStatus = getReturnDisplayStatus(resource)
const returnStockLocationName =
resource.order?.market?.name != null
? `To ${resource.order.market.name} `
resource.stock_location?.name != null
? `To ${resource.stock_location.name} `
: ''
const number = resource.number != null ? `#${resource.number}` : ''

Expand Down

0 comments on commit af475a6

Please sign in to comment.