Skip to content

Commit

Permalink
fix: bc user quote does not distinguish between channels
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlLiu2023 authored and kris-liu-smile committed Jun 27, 2023
1 parent e0908db commit 852b888
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/storefront/src/components/layout/B3Logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function B3Logo() {
<Box
sx={{
flexShrink: '0',
height: `${isMobile ? '15vw' : '70px'}`,
height: 'auto',
width: `${isMobile ? '45%' : '100%'}`,
'& img': {
width: '100%',
Expand Down
3 changes: 2 additions & 1 deletion apps/storefront/src/pages/quote/QuotesList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ function QuotesList() {
companyInfo: { id: companyB2BId },
salesRepCompanyId,
openAPPParams,
currentChannelId,
},
dispatch,
} = useContext(GlobaledContext)
Expand Down Expand Up @@ -230,7 +231,7 @@ function QuotesList() {
const key = isB2BUser ? 'quotes' : 'customerQuotes'
const {
[key]: { edges = [], totalCount },
} = await fn(params)
} = await fn({ ...params, currentChannelId })

const quoteDraftAllList = B3LStorage.get('b2bQuoteDraftList') || []
if (params.offset === 0 && quoteDraftAllList.length) {
Expand Down
1 change: 1 addition & 0 deletions apps/storefront/src/shared/service/b2b/graphql/quote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const getQuotesList = (data: CustomFieldItems, type: string) => `{
? `dateCreatedEndAt: "${data.dateCreatedEndAt}"`
: ''
}
${type === 'bc' ? `channelId: ${data?.currentChannelId || 1}` : ''}
) {
totalCount,
edges {
Expand Down

0 comments on commit 852b888

Please sign in to comment.